diff options
author | Alex Trotsenko <alex1973tr@gmail.com> | 2021-09-24 11:02:40 +0000 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2021-09-24 14:40:00 +0000 |
commit | a966fdfa7397c90d13b076bf42d3eb6b94488aeb (patch) | |
tree | 8b70b3f7e7a825ec857f386db3675cf41a089508 /src/corelib | |
parent | c9c1a01e9d41be1e686b09de8983284ef9a2f0f5 (diff) |
Revert "QProcess: do not emit aboutToClose() twice"
This reverts commit e991478372e077db92d6808e44f44e065c3bc0e3.
Reason for revert: behavior change for signal listeners
Change-Id: I62ac317116d1453554fe8af0effdeddc1d5d4041
(cherry-picked from d3a622f8173c3c9cde4b29f7c984c7c48bfc18cc)
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/io/qprocess.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/io/qprocess.cpp b/src/corelib/io/qprocess.cpp index 75334cd27c..0702667042 100644 --- a/src/corelib/io/qprocess.cpp +++ b/src/corelib/io/qprocess.cpp @@ -1565,6 +1565,7 @@ qint64 QProcess::processId() const void QProcess::close() { Q_D(QProcess); + emit aboutToClose(); while (waitForBytesWritten(-1)) ; kill(); |