forked from qt-creator/qt-creator
Find: Document contents should be retrieved from the documents directly
Instead of through an arbitrary set of editors on these documents. Change-Id: I9de731b6e6edfc52fe5199b1f47456a3a8701d9a Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -173,12 +173,12 @@ void BaseFileFind::runSearch(Find::SearchResult *search)
|
||||
watcher->setFuture(Utils::findInFilesRegExp(parameters.text,
|
||||
files(parameters.nameFilters, parameters.additionalParameters),
|
||||
textDocumentFlagsForFindFlags(parameters.flags),
|
||||
ITextEditor::openedTextEditorsContents()));
|
||||
ITextEditor::openedTextDocumentContents()));
|
||||
} else {
|
||||
watcher->setFuture(Utils::findInFiles(parameters.text,
|
||||
files(parameters.nameFilters, parameters.additionalParameters),
|
||||
textDocumentFlagsForFindFlags(parameters.flags),
|
||||
ITextEditor::openedTextEditorsContents()));
|
||||
ITextEditor::openedTextDocumentContents()));
|
||||
}
|
||||
Core::FutureProgress *progress =
|
||||
Core::ICore::progressManager()->addTask(watcher->future(),
|
||||
|
||||
Reference in New Issue
Block a user