]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Avoid triggering the bookmark action when it's not appropriate.
authorKevin Ottens <ervin@kde.org>
Wed, 22 Nov 2006 12:22:41 +0000 (12:22 +0000)
committerKevin Ottens <ervin@kde.org>
Wed, 22 Nov 2006 12:22:41 +0000 (12:22 +0000)
svn path=/trunk/playground/utils/dolphin/; revision=606934

src/dolphincontextmenu.cpp

index 1f57ef4febbabca8192f548a8c5b5212bd1dddd8..962e6b4428e352ab8c82f86590d008a9ff0d0bc7 100644 (file)
@@ -230,7 +230,7 @@ void DolphinContextMenu::openItemContextMenu()
 
     QAction *activatedAction = popup->exec(m_pos);
 
-    if (activatedAction == bookmarkAction) {
+    if (bookmarkAction!=0 && activatedAction == bookmarkAction) {
         const KUrl selectedURL(m_fileInfo->url());
         KBookmark bookmark = EditBookmarkDialog::getBookmark(i18n("Add folder as bookmark"),
                                                              selectedURL.fileName(),