From 6f0f9823568cf76203be74a042ddd98dfcea6509 Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 5 Sep 2022 15:14:23 +0200 Subject: [PATCH] TextEditor: Use filePath() instead of rawFilePath in find in files The only consumer is gitgrep and doesn't expand the path by itself. Change-Id: Ic05d29f82a6d277731439ffc032a79f7cbc6f496 Reviewed-by: Eike Ziller --- src/plugins/texteditor/findinfiles.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/texteditor/findinfiles.cpp b/src/plugins/texteditor/findinfiles.cpp index 450d442f01c..879248747c3 100644 --- a/src/plugins/texteditor/findinfiles.cpp +++ b/src/plugins/texteditor/findinfiles.cpp @@ -150,7 +150,7 @@ QWidget *FindInFiles::createConfigWidget() m_directory->setExpectedKind(PathChooser::ExistingDirectory); m_directory->setPromptDialogTitle(tr("Directory to Search")); connect(m_directory.data(), &PathChooser::textChanged, this, - [this] { pathChanged(m_directory->rawFilePath()); }); + [this] { pathChanged(m_directory->filePath()); }); m_directory->setHistoryCompleter(QLatin1String(HistoryKey), /*restoreLastItemFromHistory=*/ true); if (!HistoryCompleter::historyExistsFor(QLatin1String(HistoryKey))) {