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

@@ -71,6 +71,7 @@
closing current search field.
13. Fix combo-box text changed signal for Qt5 builds.
14. Don't have double spacer when cover-widget is hidden.
15. Fix crash in context view if song tracks changed quickly.
1.4.1
-----

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();