aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/git/gitgrep.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2023-06-28 23:55:16 +0200
committerJarek Kobus <jaroslaw.kobus@qt.io>2023-07-06 18:45:26 +0000
commit7a28ed76b83f66e0b08290ac10bd40ebe92d1972 (patch)
treeca5e64198551af930b85bacd4ce9665975bdc8f3 /src/plugins/git/gitgrep.cpp
parentbf09d179928c29983b4d18d1eef506615ac24234 (diff)
BaseFileFind: Make searchDir() non-virtual
Replace FindInFiles::pathChanged() with BaseFileFind::searchDirChanged(). Change-Id: I3cbe507968391fe45f513490424a7fe6fbbffee1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/git/gitgrep.cpp')
-rw-r--r--src/plugins/git/gitgrep.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/git/gitgrep.cpp b/src/plugins/git/gitgrep.cpp
index 8961f45c77a..890d9fe99c0 100644
--- a/src/plugins/git/gitgrep.cpp
+++ b/src/plugins/git/gitgrep.cpp
@@ -212,7 +212,7 @@ GitGrep::GitGrep(GitClient *client)
});
FindInFiles *findInFiles = FindInFiles::instance();
QTC_ASSERT(findInFiles, return);
- connect(findInFiles, &FindInFiles::pathChanged, m_widget, [this](const FilePath &path) {
+ connect(findInFiles, &FindInFiles::searchDirChanged, m_widget, [this](const FilePath &path) {
setEnabled(isGitDirectory(path));
});
connect(this, &SearchEngine::enabledChanged, m_widget, &QWidget::setEnabled);