]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Don't assign twice the same key to the action New Tab
authorJaime Torres Amate <jtamate@gmail.com>
Sat, 6 Oct 2018 07:59:10 +0000 (09:59 +0200)
committerJaime Torres Amate <jtamate@gmail.com>
Sat, 6 Oct 2018 07:59:10 +0000 (09:59 +0200)
Second try:
added Qt::CTRL + Qt::Key_T and Qt::CTRL + Qt::SHIFT + Qt::Key_N
as QKeySequence::AddTab is only Qt::CTRL + Qt::SHIFT + Qt::Key_N
under plasma.

src/dolphinmainwindow.cpp

index a862ae80359f1eaf742b1ba1ea8ded13ff55b712..3e3803d68e36e2f99b633bae6491d54d2e9e2005 100644 (file)
@@ -1079,7 +1079,7 @@ void DolphinMainWindow::setupActions()
     QAction* newTab = actionCollection()->addAction(QStringLiteral("new_tab"));
     newTab->setIcon(QIcon::fromTheme(QStringLiteral("tab-new")));
     newTab->setText(i18nc("@action:inmenu File", "New Tab"));
-    actionCollection()->setDefaultShortcuts(newTab, {QKeySequence::AddTab});
+    actionCollection()->setDefaultShortcuts(newTab, {Qt::CTRL + Qt::Key_T, Qt::CTRL + Qt::SHIFT + Qt::Key_N});
     connect(newTab, &QAction::triggered, this, static_cast<void(DolphinMainWindow::*)()>(&DolphinMainWindow::openNewActivatedTab));
 
     QAction* closeTab = KStandardAction::close(