diff options
author | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-05-30 12:41:17 -0300 |
---|---|---|
committer | Nicolás Reynolds <apoyosis@correo.inta.gob.ar> | 2012-05-30 12:41:17 -0300 |
commit | e68d976a35ac019eaad2d80b2818748211176d5b (patch) | |
tree | 716c653396b08e05e12b6acc97d06bb7cb9fd72c /libre/clementine-libre/clementine-fix-albumcoverfetch-crash.patch | |
parent | e855f30d427d16dc9b9eada81e48c6acd2400793 (diff) | |
parent | 35c8fd0c42370098fe43db71c93aa22b4d41507b (diff) |
Merge branch 'master' of ssh://gparabola/srv/git/abslibre
Conflicts:
libre/your-freedom/PKGBUILD
Diffstat (limited to 'libre/clementine-libre/clementine-fix-albumcoverfetch-crash.patch')
-rw-r--r-- | libre/clementine-libre/clementine-fix-albumcoverfetch-crash.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libre/clementine-libre/clementine-fix-albumcoverfetch-crash.patch b/libre/clementine-libre/clementine-fix-albumcoverfetch-crash.patch new file mode 100644 index 000000000..d7e64388c --- /dev/null +++ b/libre/clementine-libre/clementine-fix-albumcoverfetch-crash.patch @@ -0,0 +1,20 @@ +diff -rupN clementine-1.0.1.old/src/covers/albumcoverfetcher.cpp clementine-1.0.1/src/covers/albumcoverfetcher.cpp +--- clementine-1.0.1.old/src/covers/albumcoverfetcher.cpp 2011-12-02 16:24:44.000000000 -0500 ++++ clementine-1.0.1/src/covers/albumcoverfetcher.cpp 2012-02-26 11:37:56.351044572 -0500 +@@ -108,12 +108,16 @@ void AlbumCoverFetcher::StartRequests() + + void AlbumCoverFetcher::SingleSearchFinished(quint64 request_id, CoverSearchResults results) { + AlbumCoverFetcherSearch* search = active_requests_.take(request_id); ++ if (!search) ++ return; + search->deleteLater(); + emit SearchFinished(request_id, results, search->statistics()); + } + + void AlbumCoverFetcher::SingleCoverFetched(quint64 request_id, const QImage& image) { + AlbumCoverFetcherSearch* search = active_requests_.take(request_id); ++ if (!search) ++ return; + search->deleteLater(); + emit AlbumCoverFetched(request_id, image, search->statistics()); + } |