diff options
Diffstat (limited to 'media-gfx/digikam/files/digikam-5.1.0-albums-crashfix.patch')
-rw-r--r-- | media-gfx/digikam/files/digikam-5.1.0-albums-crashfix.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/media-gfx/digikam/files/digikam-5.1.0-albums-crashfix.patch b/media-gfx/digikam/files/digikam-5.1.0-albums-crashfix.patch new file mode 100644 index 000000000000..e22e8dfb0e82 --- /dev/null +++ b/media-gfx/digikam/files/digikam-5.1.0-albums-crashfix.patch @@ -0,0 +1,35 @@ +From: Gilles Caulier <caulier.gilles@gmail.com> +Date: Thu, 11 Aug 2016 11:41:08 +0000 +Subject: Fix CR #1368976 +X-Git-Url: http://quickgit.kde.org/?p=digikam.git&a=commitdiff&h=7c628bac74afe24dbc4ca66b1bd5d513e46f6377 +--- +Fix CR #1368976 +BUGS: 366630 +FIXED-IN: 5.2.0 +--- + + +--- a/libs/album/albumtreeview.cpp ++++ b/libs/album/albumtreeview.cpp +@@ -1089,6 +1089,11 @@ + + Album* const album = albumFilterModel()->albumForIndex(indexAt(event->pos())); + ++ if (!album) ++ { ++ return; ++ } ++ + if (album->isTrashAlbum()) + { + // For the moment, disabling context menu for trash. +@@ -1102,7 +1107,7 @@ + } + + // switch to the selected album if need +- if (d->selectOnContextMenu && album) ++ if (d->selectOnContextMenu) + { + setCurrentAlbums(QList<Album*>() << album); + } + |