fix default tab prev/next shortcuts

take into accound the whole list, not just the first shortcut
This commit is contained in:
Lukáš Tinkl 2014-11-04 00:00:04 +01:00
parent 037d5db85b
commit a069d24d4b
2 changed files with 2 additions and 6 deletions

View file

@ -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");

View file

@ -76,6 +76,4 @@ void ConfigurePreviewPluginDialog::slotOk()
QApplication::changeOverrideCursor(Qt::BusyCursor);
KIO::NetAccess::del(QUrl::fromLocalFile(QDir::homePath() + "/.thumbnails/"), this);
QApplication::restoreOverrideCursor();
}