[Digikam-devel] extragear/graphics/digikam/digikam

Andi Clemens andi.clemens at gmx.net
Wed Dec 10 17:13:33 GMT 2008

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:digikam-devel at kde.org

 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)

More information about the Digikam-devel mailing list