summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/sourcefileshandler.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2020-01-02 12:37:57 +0100
committerDavid Schulz <david.schulz@qt.io>2020-01-06 13:29:54 +0000
commitb23d80d537b7ca6b438018ff9c2356ca21158d55 (patch)
tree1a9641788817a9a7a6802ef592019c631b6a0519 /src/plugins/debugger/sourcefileshandler.cpp
parenta7dd0e50a28595eb976d77b1b23b8120b0a9395a (diff)
downloadqt-creator-b23d80d537b7ca6b438018ff9c2356ca21158d55.tar.gz
Debugger: make Location::fileName a Utils::FilePath
Change-Id: I637d39246ff576db1023f08c432a7f7b6aadbbaa Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger/sourcefileshandler.cpp')
-rw-r--r--src/plugins/debugger/sourcefileshandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/sourcefileshandler.cpp b/src/plugins/debugger/sourcefileshandler.cpp
index 1687319776..bd3ddb4d78 100644
--- a/src/plugins/debugger/sourcefileshandler.cpp
+++ b/src/plugins/debugger/sourcefileshandler.cpp
@@ -110,7 +110,7 @@ QVariant SourceFilesHandler::data(const QModelIndex &index, int role) const
bool SourceFilesHandler::setData(const QModelIndex &idx, const QVariant &data, int role)
{
if (role == BaseTreeView::ItemActivatedRole) {
- m_engine->gotoLocation(idx.data().toString());
+ m_engine->gotoLocation(FilePath::fromString(idx.data().toString()));
return true;
}
@@ -135,7 +135,7 @@ bool SourceFilesHandler::setData(const QModelIndex &idx, const QVariant &data, i
addAction(tr("Open File"), false, {});
else
addAction(tr("Open File \"%1\"").arg(name), true,
- [this, name] { m_engine->gotoLocation(name); });
+ [this, name] { m_engine->gotoLocation(FilePath::fromString(name)); });
Internal::addHideColumnActions(menu, ev.view());
menu->addAction(action(SettingsDialog));