From 8b269b0658abb58555ea079126033ac9f8f0833c Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 13 Feb 2020 14:50:47 +0900 Subject: Fixed handling of alternative terminal application in MiniCli. Signed-off-by: Michele Calgaro --- kdesktop/kdesktop.kcfg | 10 +++++----- kdesktop/minicli.cpp | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/kdesktop/kdesktop.kcfg b/kdesktop/kdesktop.kcfg index 8086ad8fd..53a1cc781 100644 --- a/kdesktop/kdesktop.kcfg +++ b/kdesktop/kdesktop.kcfg @@ -69,6 +69,11 @@ + + konsole + + Defines which terminal application is used. + @@ -83,11 +88,6 @@ - - konsole - - Defines which terminal application is used. - diff --git a/kdesktop/minicli.cpp b/kdesktop/minicli.cpp index 4b8d390b3..769c49849 100644 --- a/kdesktop/minicli.cpp +++ b/kdesktop/minicli.cpp @@ -385,10 +385,10 @@ void Minicli::keyPressEvent( TQKeyEvent* e ) TQDialog::keyPressEvent( e ); } -TQString Minicli::terminalCommand (const TQString& cmd, const TQString& args) +TQString Minicli::terminalCommand(const TQString& cmd, const TQString& args) { TQString terminal = KDesktopSettings::terminalApplication().stripWhiteSpace(); - if (terminal.endsWith("konsole")) + if (terminal.startsWith("konsole")) terminal += " --noclose"; if( args.isEmpty() ) -- cgit v1.2.1