┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukáš Tinkl <[email protected]>2014-11-04 00:00:04 +0100
committerLukáš Tinkl <[email protected]>2014-11-04 00:00:04 +0100
commita069d24d4b9d56d9faf8834ccebfb393451ba258 (patch)
tree7c05dabcbac6985484cf6219a566f87235e2efdc /src
parent037d5db85bb0bd798d40c557d424c5c9b87457a8 (diff)
fix default tab prev/next shortcuts
take into accound the whole list, not just the first shortcut
Diffstat (limited to 'src')
-rw-r--r--src/dolphinmainwindow.cpp6
-rw-r--r--src/settings/general/configurepreviewplugindialog.cpp2
2 files changed, 2 insertions, 6 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index df04cee69..eece5b878 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -1118,12 +1118,10 @@ void DolphinMainWindow::setupActions()
KStandardAction::preferences(this, SLOT(editSettings()), actionCollection());
// not in menu actions
- QList<QKeySequence> nextTabKeys;
- nextTabKeys.append(KStandardShortcut::tabNext().first()); //TODO: is this correct
+ QList<QKeySequence> nextTabKeys = KStandardShortcut::tabNext();
nextTabKeys.append(QKeySequence(Qt::CTRL | Qt::Key_Tab));
- QList<QKeySequence> prevTabKeys;
- prevTabKeys.append(KStandardShortcut::tabPrev().first()); //TODO: is this correct
+ QList<QKeySequence> prevTabKeys = KStandardShortcut::tabPrev();
prevTabKeys.append(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_Tab));
QAction* activateNextTab = actionCollection()->addAction("activate_next_tab");
diff --git a/src/settings/general/configurepreviewplugindialog.cpp b/src/settings/general/configurepreviewplugindialog.cpp
index 9e0f5152b..c81e666c8 100644
--- a/src/settings/general/configurepreviewplugindialog.cpp
+++ b/src/settings/general/configurepreviewplugindialog.cpp
@@ -76,6 +76,4 @@ void ConfigurePreviewPluginDialog::slotOk()
QApplication::changeOverrideCursor(Qt::BusyCursor);
KIO::NetAccess::del(QUrl::fromLocalFile(QDir::homePath() + "/.thumbnails/"), this);
QApplication::restoreOverrideCursor();
-
}
-