]> cloud.milkyroute.net Git - dolphin.git/commitdiff
fix default tab prev/next shortcuts
authorLukáš Tinkl <lukas@kde.org>
Mon, 3 Nov 2014 23:00:04 +0000 (00:00 +0100)
committerLukáš Tinkl <lukas@kde.org>
Mon, 3 Nov 2014 23:00:04 +0000 (00:00 +0100)
take into accound the whole list, not just the first shortcut

src/dolphinmainwindow.cpp
src/settings/general/configurepreviewplugindialog.cpp

index df04cee69d8cf552dd1194cc5324f5da0e9b0a6f..eece5b8785892779e4926d7dccb3c1450de5c24c 100644 (file)
@@ -1118,12 +1118,10 @@ void DolphinMainWindow::setupActions()
     KStandardAction::preferences(this, SLOT(editSettings()), actionCollection());
 
     // not in menu actions
     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));
 
     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");
     prevTabKeys.append(QKeySequence(Qt::CTRL | Qt::SHIFT | Qt::Key_Tab));
 
     QAction* activateNextTab = actionCollection()->addAction("activate_next_tab");
index 9e0f5152b4c8a74013325539d5ae0a2b44c6271f..c81e666c829a0730b9a484bc0faef45b2fb326eb 100644 (file)
@@ -76,6 +76,4 @@ void ConfigurePreviewPluginDialog::slotOk()
     QApplication::changeOverrideCursor(Qt::BusyCursor);
     KIO::NetAccess::del(QUrl::fromLocalFile(QDir::homePath() + "/.thumbnails/"), this);
     QApplication::restoreOverrideCursor();
     QApplication::changeOverrideCursor(Qt::BusyCursor);
     KIO::NetAccess::del(QUrl::fromLocalFile(QDir::homePath() + "/.thumbnails/"), this);
     QApplication::restoreOverrideCursor();
-
 }
 }
-