diff options
| author | Jaime Torres Amate <[email protected]> | 2018-10-06 09:59:10 +0200 |
|---|---|---|
| committer | Jaime Torres Amate <[email protected]> | 2018-10-06 09:59:10 +0200 |
| commit | 5d180c5bb280f68cb98996044055e6891e29bab7 (patch) | |
| tree | 90dff789ed39ac1c06e64fcad0a282902789bc68 /src/dolphinmainwindow.cpp | |
| parent | ddfc86ab8c207b81ec9ac83167d081b8d01c2750 (diff) | |
Don't assign twice the same key to the action New Tab
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.
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index a862ae803..3e3803d68 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -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( |
