forked from qt-creator/qt-creator
DebuggerSourcePathMappingWidget: Don't call waitForStarted()
This is unneeded when followed by waitForFinished(). Change-Id: I7dbc7c8ddb3ab52513420aae1bada2a7260ad687 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -447,11 +447,6 @@ static QString findQtInstallPath(const FilePath &qmakePath)
|
||||
QtcProcess proc;
|
||||
proc.setCommand({qmakePath, {"-query", "QT_INSTALL_HEADERS"}});
|
||||
proc.start();
|
||||
if (!proc.waitForStarted()) {
|
||||
qWarning("%s: Cannot start '%s': %s", Q_FUNC_INFO, qPrintable(qmakePath.toString()),
|
||||
qPrintable(proc.errorString()));
|
||||
return QString();
|
||||
}
|
||||
if (!proc.waitForFinished()) {
|
||||
qWarning("%s: Timeout running '%s'.", Q_FUNC_INFO, qPrintable(qmakePath.toString()));
|
||||
return QString();
|
||||
|
||||
Reference in New Issue
Block a user