Try having code only verbose when there are problems
Random output on random components doesn't really help.
This commit is contained in:
parent
1c22bb4033
commit
fd3fe7d5f5
@ -95,16 +95,17 @@ void Application::setRunning(bool run)
|
|||||||
|
|
||||||
void Application::start()
|
void Application::start()
|
||||||
{
|
{
|
||||||
qDebug() << "starting?";
|
if (d->application.isEmpty()) {
|
||||||
if (d->application.isEmpty()) return;
|
qWarning() << "Cannot run an empty application";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
qDebug() << "starting.";
|
|
||||||
d->process.start(d->application);
|
d->process.start(d->application);
|
||||||
|
|
||||||
qDebug() <<
|
if(!d->process.waitForStarted()) {
|
||||||
d->process.waitForStarted();
|
qWarning() << "Error" << d->process.error() << "while starting" << d->application;
|
||||||
|
}
|
||||||
|
|
||||||
qDebug() << "do we have an error " << d->process.error();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::terminate()
|
void Application::terminate()
|
||||||
|
Loading…
Reference in New Issue
Block a user