diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-02-12 15:08:58 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-02-12 15:42:34 +0900 |
commit | 6949aae9ce625d009008872fe4297638f12fe1ce (patch) | |
tree | c7678067288201f4644267f8cdb1b805bfbf955a /kicker/kicker | |
parent | b5f293f9437b4af567248d6cfc269fe8a0216391 (diff) | |
download | tdebase-6949aae9ce625d009008872fe4297638f12fe1ce.tar.gz tdebase-6949aae9ce625d009008872fe4297638f12fe1ce.zip |
Added GUI option to show/hide "Open in Terminal" inside QuickBrowser menus.
Minor fixup for other GUI options in "Configure Panel... -> Menus".
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kicker/kicker')
-rw-r--r-- | kicker/kicker/ui/browser_mnu.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/kicker/kicker/ui/browser_mnu.cpp b/kicker/kicker/ui/browser_mnu.cpp index b4d1b11ed..9b629e165 100644 --- a/kicker/kicker/ui/browser_mnu.cpp +++ b/kicker/kicker/ui/browser_mnu.cpp @@ -152,7 +152,7 @@ void PanelBrowserMenu::initialize() TDEConfig *c = TDEGlobal::config(); c->setGroup("menus"); insertItem(CICON("kfm"), i18n("Open in File Manager"), this, TQT_SLOT(slotOpenFileManager())); - if (kapp->authorize("shell_access") && c->readBoolEntry("kickerOpenInTerminalIsVisible",false)) + if (kapp->authorize("shell_access") && KickerSettings::showOpenInTerminal()) insertItem(CICON("terminal"), i18n("Open in Terminal"), this, TQT_SLOT(slotOpenTerminal())); insertSeparator(); } @@ -455,10 +455,7 @@ void PanelBrowserMenu::slotOpenTerminal() TDEProcess proc; proc << term; - if (term == "konsole") - proc << "--workdir" << path(); - else - proc.setWorkingDirectory(path()); + proc.setWorkingDirectory(path()); proc.start(TDEProcess::DontCare); } |