GUI dir filter: avoid adding an empty filtering clause (causing the (filtered) mention)
This commit is contained in:
parent
064018ea69
commit
11865812a4
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user