Fix crash in context view if song tracks changed quickly.

This commit is contained in:
craig.p.drummond
2014-09-20 20:09:55 +00:00
parent 7aa2652a9b
commit 42e29b00a4
2 changed files with 2 additions and 1 deletions

View File

@@ -762,6 +762,7 @@ void SongView::downloadFinished()
if (reply) {
reply->deleteLater();
if (job==reply) {
job=0;
if (reply->ok()) {
QString file=reply->property("file").toString();
if (!file.isEmpty() && file==currentSong.file) {
@@ -775,7 +776,6 @@ void SongView::downloadFinished()
}
}
}
job=0;
}
}
getLyrics();