forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user