QProcess: Include program in destructor warning.

Change-Id: Ib6870d2b161197fdeab7fe5140ac4757c79f478e
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
bb10
Friedemann Kleint 2012-10-23 10:11:54 +02:00 committed by The Qt Project
parent 32cbcca911
commit 202ac1cbe7
1 changed files with 4 additions and 2 deletions

View File

@ -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();
}