FdoSecrets: fix when exposing groups, the root group is considered in recycle bin

This commit is contained in:
Aetf 2019-12-17 17:29:18 -05:00 committed by Jonathan White
parent 98ff9f1e77
commit 12efb281f8

View File

@ -681,8 +681,8 @@ namespace FdoSecrets
Q_ASSERT(m_backend);
if (!group) {
// just to be safe
return true;
// the root group's parent is nullptr, we treat it as not in recycle bin.
return false;
}
if (!m_backend->database()->metadata()) {