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:
@@ -391,9 +391,9 @@ static void onReplaceUsagesClicked(const QString &text,
|
||||
if (!modelManager)
|
||||
return;
|
||||
|
||||
const QStringList fileNames = TextEditor::BaseFileFind::replaceAll(text, items, preserveCase);
|
||||
if (!fileNames.isEmpty()) {
|
||||
modelManager->updateSourceFiles(Utils::toSet(fileNames));
|
||||
const FilePaths filePaths = TextEditor::BaseFileFind::replaceAll(text, items, preserveCase);
|
||||
if (!filePaths.isEmpty()) {
|
||||
modelManager->updateSourceFiles(Utils::transform<QSet>(filePaths, &FilePath::toString));
|
||||
SearchResultWindow::instance()->hide();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user