From fd3fe7d5f5da52b85b9edce046a659a8842afbc4 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 5 Dec 2013 19:34:12 +0100 Subject: [PATCH] Try having code only verbose when there are problems Random output on random components doesn't really help. --- .../platformcomponents/application.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/declarativeimports/platformcomponents/application.cpp b/src/declarativeimports/platformcomponents/application.cpp index 7821f3fcf..d8b022496 100644 --- a/src/declarativeimports/platformcomponents/application.cpp +++ b/src/declarativeimports/platformcomponents/application.cpp @@ -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()