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>
This commit is contained in:
Christian Kandeler
2019-08-26 18:00:52 +02:00
parent 5f845a02cd
commit 8b4344f2a2

View File

@@ -105,7 +105,8 @@ def main():
login_script() + login_script() +
'cd ' + quote_shell(os.getcwd()) + '\n' + 'cd ' + quote_shell(os.getcwd()) + '\n' +
' '.join([quote_shell(arg) for arg in sys.argv[1:]]) + '\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.write(commands)
shell_script.flush() shell_script.flush()