Skip to content
Snippets Groups Projects
Commit f354d93e authored by dt's avatar dt
Browse files

Emit processStopped() for ConsoleProcess on ConsoleProcess::stop()

Task-Nr: QTCREATORBUG-1234
Reviewed-By: ossi
parent e7755323
No related branches found
No related tags found
No related merge requests found
......@@ -82,10 +82,13 @@ void ApplicationLauncher::start(Mode mode, const QString &program, const QString
void ApplicationLauncher::stop()
{
if (!isRunning())
return;
if (m_currentMode == Gui) {
m_winGuiProcess->stop();
} else {
m_consoleProcess->stop();
processStopped();
}
}
......
......@@ -87,6 +87,8 @@ void ApplicationLauncher::start(Mode mode, const QString &program, const QString
void ApplicationLauncher::stop()
{
if (!isRunning())
return;
if (m_currentMode == Gui) {
m_guiProcess->terminate();
if (!m_guiProcess->waitForFinished(1000)) { // This is blocking, so be fast.
......@@ -95,6 +97,7 @@ void ApplicationLauncher::stop()
}
} else {
m_consoleProcess->stop();
processStopped();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment