summaryrefslogtreecommitdiffstats
path: root/kicker/kicker/ui/browser_mnu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kicker/kicker/ui/browser_mnu.cpp')
-rw-r--r--kicker/kicker/ui/browser_mnu.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/kicker/kicker/ui/browser_mnu.cpp b/kicker/kicker/ui/browser_mnu.cpp
index 6802e6388..88ce30713 100644
--- a/kicker/kicker/ui/browser_mnu.cpp
+++ b/kicker/kicker/ui/browser_mnu.cpp
@@ -31,6 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <kfileitem.h>
#include <kglobal.h>
#include <kglobalsettings.h>
+#include <kconfig.h>
#include <kiconloader.h>
#include <kio/global.h>
#include <klocale.h>
@@ -148,12 +149,14 @@ void PanelBrowserMenu::initialize()
// only the first part menu got them
if(_startid == 0 && !_filesOnly) {
insertTitle(path());
+ KConfig *c = KGlobal::config();
+ c->setGroup("menus");
insertItem(CICON("kfm"), i18n("Open in File Manager"), this, TQT_SLOT(slotOpenFileManager()));
- if (kapp->authorize("shell_access"))
- insertItem(CICON("terminal"), i18n("Open in Terminal"), this, TQT_SLOT(slotOpenTerminal()));
+ if (kapp->authorize("shell_access") && c->readBoolEntry("kickerOpenInTerminalIsVisible",false))
+ insertItem(CICON("terminal"), i18n("Open in Terminal"), this, TQT_SLOT(slotOpenTerminal()));
+ insertSeparator();
}
-
bool first_entry = true;
bool dirfile_separator = false;
unsigned int item_count = 0;