summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2016-01-28 23:37:48 +0200
committerOrgad Shaneh <orgads@gmail.com>2016-01-29 12:07:43 +0000
commitb5b328c3310dbea8918951ef3626ba780a9b9a7b (patch)
tree488fe50cc0ee94698bbbae8d63faa4601281db52
parent9dc6f8b47deabdd6e0787ab62694e9fbdd85ef3e (diff)
downloadqt-creator-b5b328c3310dbea8918951ef3626ba780a9b9a7b.tar.gz
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 <nikolai.kosjar@theqtcompany.com>
-rw-r--r--src/tools/qtcreatorcrashhandler/crashhandler.cpp2
1 files changed, 1 insertions, 1 deletions
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