summaryrefslogtreecommitdiffstats
path: root/examples/assistant/remotecontrol/remotecontrol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/assistant/remotecontrol/remotecontrol.cpp')
-rw-r--r--examples/assistant/remotecontrol/remotecontrol.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/assistant/remotecontrol/remotecontrol.cpp b/examples/assistant/remotecontrol/remotecontrol.cpp
index 916a08efd..8b39aa6ff 100644
--- a/examples/assistant/remotecontrol/remotecontrol.cpp
+++ b/examples/assistant/remotecontrol/remotecontrol.cpp
@@ -98,11 +98,11 @@ void RemoteControl::on_launchButton_clicked()
if (process->state() == QProcess::Running)
return;
- QString app = QLibraryInfo::location(QLibraryInfo::BinariesPath) + QDir::separator();
+ QString app = QLibraryInfo::location(QLibraryInfo::BinariesPath);
#if !defined(Q_OS_MAC)
- app += QLatin1String("assistant");
+ app += QLatin1String("/assistant");
#else
- app += QLatin1String("Assistant.app/Contents/MacOS/Assistant");
+ app += QLatin1String("/Assistant.app/Contents/MacOS/Assistant");
#endif
ui.contentsCheckBox->setChecked(true);
@@ -113,8 +113,9 @@ void RemoteControl::on_launchButton_clicked()
args << QLatin1String("-enableRemoteControl");
process->start(app, args);
if (!process->waitForStarted()) {
- QMessageBox::critical(this, tr("Remote Control"),
- tr("Could not start Qt Assistant from %1.").arg(app));
+ QMessageBox::critical(
+ this, tr("Remote Control"),
+ tr("Could not start Qt Assistant from %1.").arg(QDir::toNativeSeparators(app)));
return;
}