GUI dir filter: avoid adding an empty filtering clause (causing the (filtered) mention)

This commit is contained in:
Jean-Francois Dockes 2022-02-26 16:53:33 +01:00
parent 064018ea69
commit 11865812a4

View File

@ -1240,6 +1240,7 @@ void RclMain::setFiltSpec()
}
auto treedirs = idxTreeGetDirs();
if (!treedirs.empty()) {
bool first{true};
const std::string prefix{"dir:"};
std::string clause;
@ -1253,6 +1254,7 @@ void RclMain::setFiltSpec()
}
LOGDEB0("Sidefilter dir clause: [" << clause << "]\n");
m_filtspec.orCrit(DocSeqFiltSpec::DSFS_QLANG, clause);
}
if (m_source)
m_source->setFiltSpec(m_filtspec);