forked from qt-creator/qt-creator
Core: use FilePaths to notify files changed internally
Change-Id: I2fce65ad340f18292fc0286233e78aaf769a130d Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -528,9 +528,10 @@ void CppFindReferences::onReplaceButtonClicked(const QString &text,
|
||||
const QList<SearchResultItem> &items,
|
||||
bool preserveCase)
|
||||
{
|
||||
const QStringList fileNames = TextEditor::BaseFileFind::replaceAll(text, items, preserveCase);
|
||||
if (!fileNames.isEmpty()) {
|
||||
m_modelManager->updateSourceFiles(Utils::toSet(fileNames));
|
||||
const Utils::FilePaths filePaths = TextEditor::BaseFileFind::replaceAll(text, items, preserveCase);
|
||||
if (!filePaths.isEmpty()) {
|
||||
m_modelManager->updateSourceFiles(
|
||||
Utils::transform<QSet>(filePaths, &Utils::FilePath::toString));
|
||||
SearchResultWindow::instance()->hide();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user