From 59fb0e9c9ca18f21402bcafe530321cddc005b67 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Fri, 18 Feb 2022 10:31:33 +0100 Subject: [PATCH] Core: Properly handle file path arguments with -client option These paths come from the user, so the separators must be translated. Fixes: QTCREATORBUG-27075 Change-Id: Ia20c2662d30626b8b7ed3dd19afb64a43c8a716f Reviewed-by: Eike Ziller Reviewed-by: Qt CI Bot Reviewed-by: --- src/plugins/coreplugin/coreplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/coreplugin.cpp b/src/plugins/coreplugin/coreplugin.cpp index 6b3195d16d7..483c8c3c2b9 100644 --- a/src/plugins/coreplugin/coreplugin.cpp +++ b/src/plugins/coreplugin/coreplugin.cpp @@ -283,7 +283,7 @@ QObject *CorePlugin::remoteCommand(const QStringList & /* options */, }); return nullptr; } - const FilePaths filePaths = Utils::transform(args, FilePath::fromString); + const FilePaths filePaths = Utils::transform(args, FilePath::fromUserInput); IDocument *res = MainWindow::openFiles( filePaths, ICore::OpenFilesFlags(ICore::SwitchMode | ICore::CanContainLineAndColumnNumbers | ICore::SwitchSplitIfAlreadyVisible),