From 7f1e6d0e9be29157a8f81ac334f691c1a12ed746 Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Tue, 14 Mar 2023 15:27:25 +0100 Subject: [PATCH] Debugger: Fix QString=>FilePath Change-Id: I32128c7a47ab8bdd06237251c572be3d6a5df1d1 Reviewed-by: Alessandro Portale --- src/plugins/debugger/moduleshandler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/debugger/moduleshandler.cpp b/src/plugins/debugger/moduleshandler.cpp index 3451b9b5725..26d1cd23409 100644 --- a/src/plugins/debugger/moduleshandler.cpp +++ b/src/plugins/debugger/moduleshandler.cpp @@ -161,7 +161,7 @@ bool ModulesModel::contextMenuEvent(const ItemViewEvent &ev) addAction(this, menu, Tr::tr("Show Source Files for Module \"%1\"").arg(moduleName), Tr::tr("Show Source Files for Module"), moduleNameValid && enabled && canReload, - [this, modulePath] { engine->loadSymbols(modulePath); }); + [this, modulePath] { engine->loadSymbols(FilePath::fromUserInput(modulePath)); }); // FIXME: Dependencies only available on Windows, when "depends" is installed. addAction(this, menu, Tr::tr("Show Dependencies of \"%1\"").arg(moduleName), @@ -180,7 +180,7 @@ bool ModulesModel::contextMenuEvent(const ItemViewEvent &ev) addAction(this, menu, Tr::tr("Load Symbols for Module \"%1\"").arg(moduleName), Tr::tr("Load Symbols for Module"), moduleNameValid && canLoadSymbols, - [this, modulePath] { engine->loadSymbols(modulePath); }); + [this, modulePath] { engine->loadSymbols(FilePath::fromUserInput(modulePath)); }); addAction(this, menu, Tr::tr("Edit File \"%1\"").arg(moduleName), Tr::tr("Edit File"), @@ -190,12 +190,12 @@ bool ModulesModel::contextMenuEvent(const ItemViewEvent &ev) addAction(this, menu, Tr::tr("Show Symbols in File \"%1\"").arg(moduleName), Tr::tr("Show Symbols"), canShowSymbols && moduleNameValid, - [this, modulePath] { engine->requestModuleSymbols(modulePath); }); + [this, modulePath] { engine->requestModuleSymbols(FilePath::fromUserInput(modulePath)); }); addAction(this, menu, Tr::tr("Show Sections in File \"%1\"").arg(moduleName), Tr::tr("Show Sections"), canShowSymbols && moduleNameValid, - [this, modulePath] { engine->requestModuleSections(modulePath); }); + [this, modulePath] { engine->requestModuleSections(FilePath::fromUserInput(modulePath)); }); menu->addAction(debuggerSettings()->settingsDialog.action());