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 <eike.ziller@qt.io>
This commit is contained in:
hjk
2022-09-05 15:14:23 +02:00
parent aeb460286c
commit 6f0f982356

View File

@@ -150,7 +150,7 @@ QWidget *FindInFiles::createConfigWidget()
m_directory->setExpectedKind(PathChooser::ExistingDirectory); m_directory->setExpectedKind(PathChooser::ExistingDirectory);
m_directory->setPromptDialogTitle(tr("Directory to Search")); m_directory->setPromptDialogTitle(tr("Directory to Search"));
connect(m_directory.data(), &PathChooser::textChanged, this, connect(m_directory.data(), &PathChooser::textChanged, this,
[this] { pathChanged(m_directory->rawFilePath()); }); [this] { pathChanged(m_directory->filePath()); });
m_directory->setHistoryCompleter(QLatin1String(HistoryKey), m_directory->setHistoryCompleter(QLatin1String(HistoryKey),
/*restoreLastItemFromHistory=*/ true); /*restoreLastItemFromHistory=*/ true);
if (!HistoryCompleter::historyExistsFor(QLatin1String(HistoryKey))) { if (!HistoryCompleter::historyExistsFor(QLatin1String(HistoryKey))) {