diff options
| author | Jarek Kobus <[email protected]> | 2022-01-20 11:23:31 +0100 |
|---|---|---|
| committer | Jarek Kobus <[email protected]> | 2022-01-20 11:04:26 +0000 |
| commit | 2e3d32cc1bcdd946c1f377ba0abe75044317e0c8 (patch) | |
| tree | 53cfeb3801b01a174e920096f3594f4e7d58fbf3 /src/plugins/python/pythonutils.h | |
| parent | c819c90368c43e965d9018bbc6bc80ed4ca83c40 (diff) | |
PythonEditor: Fix a leak of console process on shutdown
Give a parent for console process in order to delete it
on shutdown. In case the console process was started
and the user closed the Creator we were leaking
console process instance together with its process.
Connect to ConsoleProcess::finished() instead of stubStopped().
There is no point to keep the console open when the process
finished (it forces the user to manually close the stub
window by pressing enter).
Change-Id: I3f14e940f39b32e11bde276e80f3cb630b13d8f7
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/python/pythonutils.h')
| -rw-r--r-- | src/plugins/python/pythonutils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/python/pythonutils.h b/src/plugins/python/pythonutils.h index 9fa9651b5ff..c33bf456cac 100644 --- a/src/plugins/python/pythonutils.h +++ b/src/plugins/python/pythonutils.h @@ -31,7 +31,7 @@ namespace Python { namespace Internal { enum class ReplType { Unmodified, Import, ImportToplevel }; -void openPythonRepl(const Utils::FilePath &file, ReplType type); +void openPythonRepl(QObject *parent, const Utils::FilePath &file, ReplType type); Utils::FilePath detectPython(const Utils::FilePath &documentPath); } // namespace Internal |
