LocalRunControl: Fix wrong "exited with error code -1" output

Task-number: QTCREATORBUG-8337
Change-Id: I585b6330e6aa18891ebf0171bf6c8813761943f1
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
This commit is contained in:
Daniel Teske
2013-06-10 12:56:26 +02:00
parent f5b112c6e0
commit b696005f02

View File

@@ -100,7 +100,11 @@ void LocalApplicationRunControl::start()
if (m_executable.isEmpty()) {
appendMessage(tr("No executable specified.\n"), Utils::ErrorMessageFormat);
emit finished();
} else {
} else if (!QFileInfo(m_executable).exists()){
appendMessage(tr("Executable %1 does not exist.\n").arg(m_executable),
Utils::ErrorMessageFormat);
emit finished();
} else {
m_running = true;
QString msg = tr("Starting %1...\n").arg(QDir::toNativeSeparators(m_executable));
appendMessage(msg, Utils::NormalMessageFormat);