forked from qt-creator/qt-creator
Android: Fix wrong return values
Change-Id: Ia5917387c429278cac34a8d1f7a67631d491bff2 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -208,7 +208,7 @@ static QPair<QStringList, bool> checkGdbForBrokenPython(const QStringList &paths
|
||||
if (output.contains("(gdb)"))
|
||||
break;
|
||||
if (timer.elapsed() > 7 * 1000)
|
||||
return qMakePair(QStringList(path), true); // Took too long, abort
|
||||
return qMakePair(paths, true); // Took too long, abort
|
||||
}
|
||||
|
||||
output.clear();
|
||||
@@ -219,7 +219,7 @@ static QPair<QStringList, bool> checkGdbForBrokenPython(const QStringList &paths
|
||||
proc.write("quit\n");
|
||||
while (proc.waitForFinished(300)) {
|
||||
if (timer.elapsed() > 9 * 1000)
|
||||
return qMakePair(QStringList(path), true); // Took too long, abort
|
||||
return qMakePair(paths, true); // Took too long, abort
|
||||
}
|
||||
proc.waitForFinished();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user