diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2012-10-23 10:11:54 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-23 12:28:23 +0200 |
commit | 202ac1cbe7d7e2a30b3c2384ce8d62655ba019c0 (patch) | |
tree | 3cdacec540d96c5b2987c5e090f57ba72635ac9d /src | |
parent | 32cbcca91122c61a1dddf45f23916424cd65829b (diff) |
QProcess: Include program in destructor warning.
Change-Id: Ib6870d2b161197fdeab7fe5140ac4757c79f478e
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/io/qprocess.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/corelib/io/qprocess.cpp b/src/corelib/io/qprocess.cpp index b115310d63..395effaff9 100644 --- a/src/corelib/io/qprocess.cpp +++ b/src/corelib/io/qprocess.cpp @@ -41,8 +41,9 @@ //#define QPROCESS_DEBUG -#if defined QPROCESS_DEBUG #include <qdebug.h> +#include <qdir.h> +#if defined QPROCESS_DEBUG #include <qstring.h> #include <ctype.h> #if !defined(Q_OS_WINCE) @@ -1147,7 +1148,8 @@ QProcess::~QProcess() { Q_D(QProcess); if (d->processState != NotRunning) { - qWarning("QProcess: Destroyed while process is still running."); + qWarning().nospace() + << "QProcess: Destroyed while process (" << QDir::toNativeSeparators(program()) << ") is still running."; kill(); waitForFinished(); } |