mirror of
https://github.com/YACReader/yacreader
synced 2025-07-21 06:24:39 -04:00
Exclude root folder
This commit is contained in:
@ -793,7 +793,7 @@ Folder DBHelper::updateChildrenInfo(qulonglong folderId, QSqlDatabase &db)
|
|||||||
void DBHelper::updateChildrenInfo(QSqlDatabase &db)
|
void DBHelper::updateChildrenInfo(QSqlDatabase &db)
|
||||||
{
|
{
|
||||||
QSqlQuery selectQuery(db); // TODO check
|
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();
|
selectQuery.exec();
|
||||||
|
|
||||||
while (selectQuery.next()) {
|
while (selectQuery.next()) {
|
||||||
|
Reference in New Issue
Block a user