From 28fa7387ecf3db948de251c7e7af3b2467776b95 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Tue, 10 May 2022 11:05:08 +0200 Subject: [PATCH] Update dir filter when prefs change. Maybe should explicitely link to extdbs change instead? --- src/qtgui/idxmodel.cpp | 4 ++-- src/qtgui/rclmain_w.cpp | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/qtgui/idxmodel.cpp b/src/qtgui/idxmodel.cpp index a136c245..fb85dd04 100644 --- a/src/qtgui/idxmodel.cpp +++ b/src/qtgui/idxmodel.cpp @@ -107,7 +107,7 @@ static void treelist(const std::string& top, const std::vector& lst } std::vector curpath; stringToTokens(top, curpath, "/"); - std::cerr << "top " << top << " TOP len is " << curpath.size() << "\n"; + //std::cerr << "top " << top << " TOP len is " << curpath.size() << "\n"; for (const auto& dir : lst) { // std::cerr << "DIR: " << dir << "\n"; std::vector npath; @@ -128,7 +128,7 @@ static void treelist(const std::string& top, const std::vector& lst } // Callbacks for new entries above the base. for (int j = i; j < int(npath.size()); j++) { - std::cerr << "Entering " << toksToPath(npath, j) << "\n"; + //std::cerr << "Entering " << toksToPath(npath, j) << "\n"; cb.processone(toksToPath(npath, j), nullptr, FsTreeWalker::FtwDirEnter); } curpath.swap(npath); diff --git a/src/qtgui/rclmain_w.cpp b/src/qtgui/rclmain_w.cpp index 8c2152c4..81f41044 100644 --- a/src/qtgui/rclmain_w.cpp +++ b/src/qtgui/rclmain_w.cpp @@ -1159,9 +1159,7 @@ void RclMain::setUIPrefs() if (!uiprefs) return; LOGDEB("Recollmain::setUIPrefs\n"); - if (nullptr != m_idxtreemodel && m_idxtreemodel->getDepth() != prefs.idxFilterTreeDepth) { - populateSideFilters(); - } + populateSideFilters(); emit uiPrefsChanged(); enbSynAction->setDisabled(prefs.synFile.isEmpty()); enbSynAction->setChecked(prefs.synFileEnable);