From 747ba7f935377a74a712d0cce42ee56e6b65c199 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 20 Feb 2013 16:06:03 +0100 Subject: [PATCH] Synchronous process: Show binary in message box for Qt 5. Change-Id: I74b1c568593eea92f52565221789224d7d0090eb Reviewed-by: Orgad Shaneh --- src/libs/utils/synchronousprocess.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libs/utils/synchronousprocess.cpp b/src/libs/utils/synchronousprocess.cpp index f1c811886e1..efbe7fd87a5 100644 --- a/src/libs/utils/synchronousprocess.cpp +++ b/src/libs/utils/synchronousprocess.cpp @@ -580,7 +580,11 @@ bool SynchronousProcess::readDataFromProcess(QProcess &p, int timeOutMS, // Prompt user, pretend we have data if says 'No'. const bool hang = !hasData && !finished; if (hang && showTimeOutMessageBox) { - if (!askToKill()) + QString binary; +#if QT_VERSION >= 0x050000 + binary = p.program(); +#endif + if (!askToKill(binary)) hasData = true; } } while (hasData && !finished);