diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2019-08-26 18:00:52 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2019-08-30 08:55:38 +0000 |
commit | 8b4344f2a295db6ba0aad42148e67c62009bab79 (patch) | |
tree | 795e8b0200f745e77acbe7519a0b8a41fc417b23 | |
parent | 5f845a02cd08e804f255090936265849a5abe466 (diff) | |
download | qt-creator-8b4344f2a295db6ba0aad42148e67c62009bab79.tar.gz |
ProjectExplorer: When running in the terminal on macOS, make it close
... after the application has finished and the user pressed the return
key as requested.
Fixes: QTCREATORBUG-15138
Change-Id: Id5b9fce553eb96b10aa76ccbd87fb66f02218110
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rwxr-xr-x | share/qtcreator/scripts/openTerminal.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/qtcreator/scripts/openTerminal.py b/share/qtcreator/scripts/openTerminal.py index afcb94d632..e931c6bb26 100755 --- a/share/qtcreator/scripts/openTerminal.py +++ b/share/qtcreator/scripts/openTerminal.py @@ -105,7 +105,8 @@ def main(): login_script() + 'cd ' + quote_shell(os.getcwd()) + '\n' + ' '.join([quote_shell(arg) for arg in sys.argv[1:]]) + '\n' + - 'rm ' + quoted_shell_script + '\n' + 'rm ' + quoted_shell_script + '\n' + + 'exit\n' if len(sys.argv) > 1 else '' ) shell_script.write(commands) shell_script.flush() |