From b5b328c3310dbea8918951ef3626ba780a9b9a7b Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Thu, 28 Jan 2016 23:37:48 +0200 Subject: CrashHandler: Prefer Qt Creator in PATH for debugging If the current instance of Creator is crashing, it might not be a good idea to use it for debugging... Change-Id: I4c28b3960c0722184fc92a6d20fbff8badb1fea3 Reviewed-by: Nikolai Kosjar --- src/tools/qtcreatorcrashhandler/crashhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/qtcreatorcrashhandler/crashhandler.cpp b/src/tools/qtcreatorcrashhandler/crashhandler.cpp index 99e8d25dc6..fd5c589ab9 100644 --- a/src/tools/qtcreatorcrashhandler/crashhandler.cpp +++ b/src/tools/qtcreatorcrashhandler/crashhandler.cpp @@ -291,7 +291,7 @@ void CrashHandler::debugApplication() // Prepare command. QString executable = d->creatorInPath.toString(); - if (!d->restartAppCommandLine.isEmpty()) + if (executable.isEmpty() && !d->restartAppCommandLine.isEmpty()) executable = d->restartAppCommandLine.at(0); const QStringList commandLine = QStringList() << executable -- cgit v1.2.1