don't start if already running

This commit is contained in:
Marco Martin 2014-03-19 18:30:24 +01:00
parent f1af24c40e
commit b5a61d00a0

View File

@ -95,11 +95,16 @@ void Application::setRunning(bool run)
void Application::start()
{
if (!d->running) {
return;
}
if (d->application.isEmpty()) {
qWarning() << "Cannot run an empty application";
return;
}
qDebug() << "Starting" << d->application;
d->process.start(d->application);
if(!d->process.waitForStarted()) {