From cdb3162c60ceeb2fe22fe57d6d9608fc7501b619 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Mon, 11 Jul 2011 14:22:10 +0000 Subject: [PATCH] Git: Use native separators in error messages Change-Id: I52cdcd2b34311796eff80cebd0b56f8996186fd0 Reviewed-on: http://codereview.qt.nokia.com/1446 Reviewed-by: Qt Sanity Bot Reviewed-by: Alessandro Portale --- src/libs/utils/synchronousprocess.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libs/utils/synchronousprocess.cpp b/src/libs/utils/synchronousprocess.cpp index 82a57578864..c7768a6c6f3 100644 --- a/src/libs/utils/synchronousprocess.cpp +++ b/src/libs/utils/synchronousprocess.cpp @@ -130,17 +130,17 @@ QString SynchronousProcessResponse::exitMessage(const QString &binary, int timeo { switch (result) { case Finished: - return SynchronousProcess::tr("The command '%1' finished successfully.").arg(binary); + return SynchronousProcess::tr("The command '%1' finished successfully.").arg(QDir::toNativeSeparators(binary)); case FinishedError: - return SynchronousProcess::tr("The command '%1' terminated with exit code %2.").arg(binary).arg(exitCode); + return SynchronousProcess::tr("The command '%1' terminated with exit code %2.").arg(QDir::toNativeSeparators(binary)).arg(exitCode); break; case TerminatedAbnormally: - return SynchronousProcess::tr("The command '%1' terminated abnormally.").arg(binary); + return SynchronousProcess::tr("The command '%1' terminated abnormally.").arg(QDir::toNativeSeparators(binary)); case StartFailed: - return SynchronousProcess::tr("The command '%1' could not be started.").arg(binary); + return SynchronousProcess::tr("The command '%1' could not be started.").arg(QDir::toNativeSeparators(binary)); case Hang: return SynchronousProcess::tr("The command '%1' did not respond within the timeout limit (%2 ms)."). - arg(binary).arg(timeoutMS); + arg(QDir::toNativeSeparators(binary)).arg(timeoutMS); } return QString(); }