mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-02 14:45:04 +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:
parent
63f6ef7656
commit
a08b5f8357
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue