QmlEngine: Enforce newline after status messages

Reviewed-by: hjk
This commit is contained in:
Kai Koehne
2011-03-30 13:14:30 +02:00
parent 84eeb79896
commit 72d021a6ab
2 changed files with 6 additions and 2 deletions

View File

@@ -384,7 +384,11 @@ void QmlEngine::runEngine()
void QmlEngine::startApplicationLauncher() void QmlEngine::startApplicationLauncher()
{ {
if (!d->m_applicationLauncher.isRunning()) { if (!d->m_applicationLauncher.isRunning()) {
appendMessage(tr("Starting %1 %2").arg(QDir::toNativeSeparators(startParameters().executable), startParameters().processArgs), NormalMessageFormat); appendMessage(tr("Starting %1 %2").arg(
QDir::toNativeSeparators(startParameters().executable),
startParameters().processArgs)
+ QLatin1Char('\n')
, NormalMessageFormat);
d->m_applicationLauncher.start(ApplicationLauncher::Gui, d->m_applicationLauncher.start(ApplicationLauncher::Gui,
startParameters().executable, startParameters().executable,
startParameters().processArgs); startParameters().processArgs);

View File

@@ -166,7 +166,7 @@ void ApplicationLauncher::guiProcessError()
default: default:
error = tr("Some error has occurred while running the program."); error = tr("Some error has occurred while running the program.");
} }
emit appendMessage(error, ErrorMessageFormat); emit appendMessage(error + QLatin1Char('\n'), ErrorMessageFormat);
emit processExited(d->m_guiProcess.exitCode()); emit processExited(d->m_guiProcess.exitCode());
} }