diff options
author | Michele Calgaro <[email protected]> | 2020-02-13 14:50:47 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2020-02-13 14:50:47 +0900 |
commit | 8b269b0658abb58555ea079126033ac9f8f0833c (patch) | |
tree | 9761d5214c78645d8b3f1a3c37689af0b2fb7687 /kdesktop/minicli.cpp | |
parent | 4ce5ad8c3c1fa5a972901232ef2187c857bc89f8 (diff) | |
download | tdebase-8b269b0658abb58555ea079126033ac9f8f0833c.tar.gz tdebase-8b269b0658abb58555ea079126033ac9f8f0833c.zip |
Fixed handling of alternative terminal application in MiniCli.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kdesktop/minicli.cpp')
-rw-r--r-- | kdesktop/minicli.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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() ) |