From: Emmanuel Pescosta Date: Wed, 28 Jan 2015 14:04:32 +0000 (+0100) Subject: undo should be disabled by default X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/7a7e8ee819f0baeeb94b36d5cdc37a30aee83c4a?ds=inline undo should be disabled by default --- diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 830669726..2dc61c588 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -1087,6 +1087,9 @@ void DolphinMainWindow::setupActions() undoCloseTab->setEnabled(false); connect(undoCloseTab, SIGNAL(triggered()), recentTabsMenu, SLOT(undoCloseTab())); + auto undoAction = actionCollection()->action(KStandardAction::name(KStandardAction::Undo)); + undoAction->setEnabled(false); // undo should be disabled by default + KStandardAction::forward(this, SLOT(goForward()), actionCollection()); KStandardAction::up(this, SLOT(goUp()), actionCollection()); KStandardAction::home(this, SLOT(goHome()), actionCollection());