From 3eb73648573209a91e09a48bf780010652e87c53 Mon Sep 17 00:00:00 2001 From: Andrii Semkiv Date: Fri, 6 Sep 2024 16:04:14 +0200 Subject: [PATCH] Boot2Qt: Replace FilePath::toString Replace occurrences of FilePath::toString with more sensible alternatives. Change-Id: I622aaf34f0209380e9e1fec6789c29fcde087055 Reviewed-by: Marcus Tillmanns --- src/plugins/boot2qt/device-detection/qdbwatcher.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()