┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Pakulat <[email protected]>2007-11-02 20:50:05 +0000
committerAndreas Pakulat <[email protected]>2007-11-02 20:50:05 +0000
commit87ba6b6e04e2a655d72575874fc2ab8fef37ad4c (patch)
treec50e17e01cc266f7ff0fb957be5d1837d073d85d /src
parent42439cd482987f17a0202c57beb9622bba1f8490 (diff)
Fix the conflict between cut and delete shortcuts
BUG:151601 svn path=/trunk/KDE/kdebase/apps/; revision=732119
Diffstat (limited to 'src')
-rw-r--r--src/dolphinmainwindow.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 7b7242a8f..ff6af9913 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -1144,7 +1144,12 @@ void DolphinMainWindow::setupActions()
SLOT(undo()),
actionCollection());
- KStandardAction::cut(this, SLOT(cut()), actionCollection());
+ //Need to remove shift+del from cut action, else the shortcut for deletejob
+ //doesn't work
+ KAction* cut = KStandardAction::cut(this, SLOT(cut()), actionCollection());
+ KShortcut cutShortcut = cut->shortcut();
+ cutShortcut.remove(Qt::SHIFT + Qt::Key_Delete, KShortcut::KeepEmpty);
+ cut->setShortcut(cutShortcut);
KStandardAction::copy(this, SLOT(copy()), actionCollection());
KStandardAction::paste(this, SLOT(paste()), actionCollection());