diff options
author | hjk <hjk@qt.io> | 2021-05-28 13:19:38 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2021-06-02 14:16:36 +0000 |
commit | 0ba43384671c00a4bad87b74012a184d91beb7c2 (patch) | |
tree | be3b6bc130b6119f628567d0714597690abe9d8f /src/plugins/python/pythonutils.cpp | |
parent | 08040e4e94acba0c781b058ac5408955a4bc95fb (diff) | |
download | qt-creator-0ba43384671c00a4bad87b74012a184d91beb7c2.tar.gz |
Utils: Rename QtcProcess::Result::Finished to FinishedWithSuccess
To make clear that this is not just any finish.
Also change FinishedError to FinishedWithError, to create
symmetry.
Also adapt enum member description to reality.
Change-Id: I13e05391eb86fdb24e2ae660f14dfddb282e1104
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/python/pythonutils.cpp')
-rw-r--r-- | src/plugins/python/pythonutils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/python/pythonutils.cpp b/src/plugins/python/pythonutils.cpp index a8a8467f30..0e6a3d8b4b 100644 --- a/src/plugins/python/pythonutils.cpp +++ b/src/plugins/python/pythonutils.cpp @@ -88,7 +88,7 @@ static QString pythonName(const FilePath &pythonPath) pythonProcess.setTimeoutS(2); pythonProcess.setCommand({pythonPath, {"--version"}}); pythonProcess.runBlocking(); - if (pythonProcess.result() != QtcProcess::Finished) + if (pythonProcess.result() != QtcProcess::FinishedWithSuccess) return {}; name = pythonProcess.allOutput().trimmed(); nameForPython[pythonPath] = name; |