diff options
| author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2023-06-28 23:55:16 +0200 |
|---|---|---|
| committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2023-07-06 18:45:26 +0000 |
| commit | 7a28ed76b83f66e0b08290ac10bd40ebe92d1972 (patch) | |
| tree | ca5e64198551af930b85bacd4ce9665975bdc8f3 /src/plugins/git/gitgrep.cpp | |
| parent | bf09d179928c29983b4d18d1eef506615ac24234 (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.cpp | 2 |
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); |
