forked from qt-creator/qt-creator
Synchronous process: Show binary in message box for Qt 5.
Change-Id: I74b1c568593eea92f52565221789224d7d0090eb Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -580,7 +580,11 @@ bool SynchronousProcess::readDataFromProcess(QProcess &p, int timeOutMS,
|
|||||||
// Prompt user, pretend we have data if says 'No'.
|
// Prompt user, pretend we have data if says 'No'.
|
||||||
const bool hang = !hasData && !finished;
|
const bool hang = !hasData && !finished;
|
||||||
if (hang && showTimeOutMessageBox) {
|
if (hang && showTimeOutMessageBox) {
|
||||||
if (!askToKill())
|
QString binary;
|
||||||
|
#if QT_VERSION >= 0x050000
|
||||||
|
binary = p.program();
|
||||||
|
#endif
|
||||||
|
if (!askToKill(binary))
|
||||||
hasData = true;
|
hasData = true;
|
||||||
}
|
}
|
||||||
} while (hasData && !finished);
|
} while (hasData && !finished);
|
||||||
|
|||||||
Reference in New Issue
Block a user