┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-11-19 19:58:00 +0000
committerPeter Penz <[email protected]>2007-11-19 19:58:00 +0000
commit46b52d7ba2a949d792fb05bd3fcf84c13244c453 (patch)
tree56da908dc5766696b752a0557dc2036d47c05ecd /src
parent8c045dfec6ac0e8fd36dcba0c4a721269e0fe7d4 (diff)
open the context-menu for the viewport if no selection is given although the mouse is above an item (this might happen if the shift-key is pressed during a right-button mouse click)
svn path=/trunk/KDE/kdebase/apps/; revision=738816
Diffstat (limited to 'src')
-rw-r--r--src/dolphincontextmenu.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp
index a7a5ae567..e7f4bceaa 100644
--- a/src/dolphincontextmenu.cpp
+++ b/src/dolphincontextmenu.cpp
@@ -75,7 +75,7 @@ void DolphinContextMenu::open()
m_context |= TrashContext;
}
- if (!m_fileInfo.isNull()) {
+ if (!m_fileInfo.isNull() && (m_selectedItems.count() > 0)) {
m_context |= ItemContext;
// TODO: handle other use cases like devices + desktop files
}
@@ -219,7 +219,6 @@ void DolphinContextMenu::openItemContextMenu()
void DolphinContextMenu::openViewportContextMenu()
{
- Q_ASSERT(m_fileInfo.isNull());
KMenu* popup = new KMenu(m_mainWindow);
addShowMenubarAction(popup);