Fix crash in context view if song tracks changed quickly.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user