SVN commit 895403 by aclemens:
prevent digiKam from crashing if the user right-clicks into empty
folderlist. This will display no context menu at all. I had another
solution where the context menu displayed at least "Create new album",
but this doesn't make sense because the album gets randomly assigned to
some root collection.
Any other suggestions here?
CCMAIL:
[hidden email]
M +2 -0 albumfolderview.cpp
--- trunk/extragear/graphics/digikam/digikam/albumfolderview.cpp #895402:895403
@@ -569,6 +569,8 @@
QAction *newAction = popmenu.addAction(SmallIcon("albumfolder-new"), i18n("New Album..."));
AlbumFolderViewItem *item = dynamic_cast<AlbumFolderViewItem*>(listitem);
+ if (!item)
+ return;
PAlbum *album = item->album();
if (item && !album)
{
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel