mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Exclude root folder
This commit is contained in:
parent
a07ac4a956
commit
a2541a4c96
@ -793,7 +793,7 @@ Folder DBHelper::updateChildrenInfo(qulonglong folderId, QSqlDatabase &db)
|
||||
void DBHelper::updateChildrenInfo(QSqlDatabase &db)
|
||||
{
|
||||
QSqlQuery selectQuery(db); // TODO check
|
||||
selectQuery.prepare("SELECT id FROM folder f WHERE f.parentId = 1");
|
||||
selectQuery.prepare("SELECT id FROM folder f WHERE f.parentId = 1 AND f.id <> 1");
|
||||
selectQuery.exec();
|
||||
|
||||
while (selectQuery.next()) {
|
||||
|
Loading…
Reference in New Issue
Block a user