diff options
| author | Peter Penz <[email protected]> | 2010-09-17 21:16:56 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-09-17 21:16:56 +0000 |
| commit | 9a55b0d704c1301f5aef569392ca2695d8fc3204 (patch) | |
| tree | 3277e5f51172acb20e699c5cd79581ea9051bf2f /src/dolphinmainwindow.cpp | |
| parent | 304e9524b6c1f3e1582a07c34cdf42ea1c3167bb (diff) | |
There is no need to burden DolphinMainWindow with internals of the context-menu.
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=1176513
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 6f407a84a..722a90f93 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -114,8 +114,7 @@ DolphinMainWindow::DolphinMainWindow(int id) : m_actionHandler(0), m_remoteEncoding(0), m_settingsDialog(0), - m_lastHandleUrlStatJob(0), - m_keyInfo(new KModifierKeyInfo) + m_lastHandleUrlStatJob(0) { setObjectName("Dolphin#"); @@ -1168,12 +1167,6 @@ void DolphinMainWindow::openContextMenu(const KFileItem& item, const QList<QAction*>& customActions) { DolphinContextMenu contextMenu(this, item, url); - - if(m_keyInfo.isKeyPressed(Qt::Key_Shift) || m_keyInfo.isKeyLatched(Qt::Key_Shift)) { - contextMenu.setShiftIsPressed(true); - } - - connect(&m_keyInfo, SIGNAL(keyPressed(Qt::Key, bool)), &contextMenu, SLOT(deleteOrTrashMenuEntry(Qt::Key, bool))); contextMenu.setCustomActions(customActions); contextMenu.open(); } |
