Try having code only verbose when there are problems

Random output on random components doesn't really help.
This commit is contained in:
Aleix Pol 2013-12-05 19:34:12 +01:00
parent 1c22bb4033
commit fd3fe7d5f5

View File

@ -95,16 +95,17 @@ void Application::setRunning(bool run)
void Application::start()
{
qDebug() << "starting?";
if (d->application.isEmpty()) return;
if (d->application.isEmpty()) {
qWarning() << "Cannot run an empty application";
return;
}
qDebug() << "starting.";
d->process.start(d->application);
qDebug() <<
d->process.waitForStarted();
if(!d->process.waitForStarted()) {
qWarning() << "Error" << d->process.error() << "while starting" << d->application;
}
qDebug() << "do we have an error " << d->process.error();
}
void Application::terminate()