Don't annoy Windows users with alien dir separators

This commit is contained in:
Alessandro Portale
2009-04-15 18:39:05 +02:00
parent 8817cdd2bd
commit 9c57693a09

View File

@@ -34,6 +34,7 @@
#include <projectexplorer/projectexplorerconstants.h> #include <projectexplorer/projectexplorerconstants.h>
#include <utils/qtcassert.h> #include <utils/qtcassert.h>
#include <QtCore/QDir>
#include <QtGui/QLabel> #include <QtGui/QLabel>
#include <QtGui/QTextDocument> #include <QtGui/QTextDocument>
#include <QDebug> #include <QDebug>
@@ -137,7 +138,7 @@ void ApplicationRunControl::start()
m_executable, rc->commandLineArguments()); m_executable, rc->commandLineArguments());
emit started(); emit started();
emit addToOutputWindow(this, tr("Starting %1...").arg(m_executable)); emit addToOutputWindow(this, tr("Starting %1...").arg(QDir::toNativeSeparators(m_executable)));
} }
void ApplicationRunControl::stop() void ApplicationRunControl::stop()
@@ -163,7 +164,7 @@ void ApplicationRunControl::slotAddToOutputWindow(const QString &line)
void ApplicationRunControl::processExited(int exitCode) void ApplicationRunControl::processExited(int exitCode)
{ {
emit addToOutputWindow(this, tr("%1 exited with code %2").arg(m_executable).arg(exitCode)); emit addToOutputWindow(this, tr("%1 exited with code %2").arg(QDir::toNativeSeparators(m_executable)).arg(exitCode));
emit finished(); emit finished();
} }