diff --git a/src/plugins/boot2qt/device-detection/qdbwatcher.cpp b/src/plugins/boot2qt/device-detection/qdbwatcher.cpp index 8a18a3b5ac9..f7e2f8bdc68 100644 --- a/src/plugins/boot2qt/device-detection/qdbwatcher.cpp +++ b/src/plugins/boot2qt/device-detection/qdbwatcher.cpp @@ -110,8 +110,7 @@ void QdbWatcher::handleWatchMessage() void QdbWatcher::forkHostServer() { Utils::FilePath qdbFilePath = findTool(QdbTool::Qdb); - QFile executable(qdbFilePath.toString()); - if (!executable.exists()) { + if (!qdbFilePath.exists()) { const QString message = Tr::tr("Could not find QDB host server executable. " "You can set the location with environment variable %1.") .arg(overridingEnvironmentVariable(QdbTool::Qdb)); @@ -121,7 +120,8 @@ void QdbWatcher::forkHostServer() if (Utils::Process::startDetached({qdbFilePath, {"server"}})) showMessage(Tr::tr("QDB host server started."), false); else - showMessage(Tr::tr("Could not start QDB host server in %1").arg(qdbFilePath.toString()), true); + showMessage( + Tr::tr("Could not start QDB host server in %1").arg(qdbFilePath.toUserOutput()), true); } void QdbWatcher::retry()