diff options
| author | Kevin Ottens <[email protected]> | 2006-11-22 12:22:41 +0000 |
|---|---|---|
| committer | Kevin Ottens <[email protected]> | 2006-11-22 12:22:41 +0000 |
| commit | a08b5f835732304c7be7ebdd1627f41b16a46f3a (patch) | |
| tree | c495134c75a8c2d0aa52bfeacdb065d7286c50ca /src/dolphincontextmenu.cpp | |
| parent | 63f6ef7656f6ec9c4a2f5f5c92dcd08878638cbf (diff) | |
Avoid triggering the bookmark action when it's not appropriate.
svn path=/trunk/playground/utils/dolphin/; revision=606934
Diffstat (limited to 'src/dolphincontextmenu.cpp')
| -rw-r--r-- | src/dolphincontextmenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index 1f57ef4fe..962e6b442 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(), |
