From be0c2600f8ba3d38cd54976e8cfc163b9e91fca0 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 16 Mar 2022 16:01:18 +0100 Subject: [PATCH] DirectoryFilter: Fix missing file entries before first refresh After re-starting Qt Creator, the filter was reading the file path cache from the settings, but it didn't set the corresponding file iterator that is used when actually invoking Locator. That lead to the files only being available after the first (automatic) refresh after a few minutes of Qt Creator running (depending on settings). Fixes: QTCREATORBUG-26381 Change-Id: I819961ad3b146d339e760f6648b8b01f437040f7 Reviewed-by: Reviewed-by: David Schulz --- src/plugins/coreplugin/locator/directoryfilter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/locator/directoryfilter.cpp b/src/plugins/coreplugin/locator/directoryfilter.cpp index b5e69451667..cb010653afb 100644 --- a/src/plugins/coreplugin/locator/directoryfilter.cpp +++ b/src/plugins/coreplugin/locator/directoryfilter.cpp @@ -141,10 +141,10 @@ void DirectoryFilter::restoreState(const QByteArray &state) setIncludedByDefault(defaultFilter); locker.unlock(); - updateFileIterator(); } else { ILocatorFilter::restoreState(state); } + updateFileIterator(); } bool DirectoryFilter::openConfigDialog(QWidget *parent, bool &needsRefresh)