From 202ac1cbe7d7e2a30b3c2384ce8d62655ba019c0 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 23 Oct 2012 10:11:54 +0200 Subject: QProcess: Include program in destructor warning. Change-Id: Ib6870d2b161197fdeab7fe5140ac4757c79f478e Reviewed-by: Joerg Bornemann --- src/corelib/io/qprocess.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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 +#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(); } -- cgit v1.2.3