diff options
| author | Peter Penz <[email protected]> | 2007-01-06 19:51:48 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-01-06 19:51:48 +0000 |
| commit | 86ad5d0a630654f81f4649f997dd6451f371f5f6 (patch) | |
| tree | 24a88713cefcbd3c38096829aa79249b1bf5198e /src/dolphincontextmenu.cpp | |
| parent | ddc11d9a26176e4f7409bcb297f88cee9439513a (diff) | |
Reanimate drag and drop support for the URL navigator.
svn path=/trunk/playground/utils/dolphin/; revision=620633
Diffstat (limited to 'src/dolphincontextmenu.cpp')
| -rw-r--r-- | src/dolphincontextmenu.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index 14ec8dcd4..6c4dda80a 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -181,8 +181,9 @@ void DolphinContextMenu::openItemContextMenu() const int count = sizeof(actionNames) / sizeof(KStandardAction::StandardAction); for (int i = 0; i < count; ++i) { QAction* action = dolphin->actionCollection()->action(KStandardAction::stdName(actionNames[i])); - if (action) + if (action != 0) { popup->addAction(action); + } } popup->insertSeparator(); @@ -204,7 +205,7 @@ void DolphinContextMenu::openItemContextMenu() // insert 'Bookmark this folder...' entry // urls is a list of selected items, so insert boolmark menu if // urls contains only one item, i.e. no multiple selection made - QAction *bookmarkAction = 0; + QAction* bookmarkAction = 0; if (m_fileInfo->isDir() && (urls.count() == 1)) { bookmarkAction = popup->addAction(i18n("Bookmark this folder")); } |
