From: Friedemann Kleint Date: Tue, 23 Oct 2012 08:11:54 +0000 (+0200) Subject: QProcess: Include program in destructor warning. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=202ac1cbe7d7e2a30b3c2384ce8d62655ba019c0;p=profile%2Fivi%2Fqtbase.git QProcess: Include program in destructor warning. Change-Id: Ib6870d2b161197fdeab7fe5140ac4757c79f478e Reviewed-by: Joerg Bornemann --- diff --git a/src/corelib/io/qprocess.cpp b/src/corelib/io/qprocess.cpp index b115310..395effa 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 +#include +#if defined QPROCESS_DEBUG #include #include #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(); }