From a08b5f835732304c7be7ebdd1627f41b16a46f3a Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Wed, 22 Nov 2006 12:22:41 +0000 Subject: [PATCH] Avoid triggering the bookmark action when it's not appropriate. svn path=/trunk/playground/utils/dolphin/; revision=606934 --- src/dolphincontextmenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index 1f57ef4feb..962e6b4428 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -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(),