1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-02 16:31:23 +00:00

Avoid triggering the bookmark action when it's not appropriate.

svn path=/trunk/playground/utils/dolphin/; revision=606934
This commit is contained in:
Kevin Ottens 2006-11-22 12:22:41 +00:00
parent 63f6ef7656
commit a08b5f8357

View 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(),