From 9ae4911b78f518bafcb4cf05cb53b7db96391381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Wed, 17 Jan 2024 16:23:54 +0100 Subject: [PATCH] Fix parentId value when a folder info is requested to the server --- YACReaderLibrary/db_helper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YACReaderLibrary/db_helper.cpp b/YACReaderLibrary/db_helper.cpp index a82fd48a..d741455a 100644 --- a/YACReaderLibrary/db_helper.cpp +++ b/YACReaderLibrary/db_helper.cpp @@ -220,7 +220,7 @@ Folder DBHelper::getFolder(qulonglong libraryId, qulonglong id) int updated = record.indexOf("updated"); if (selectQuery.next()) { - folder = Folder(selectQuery.value(id).toULongLong(), parentId, selectQuery.value(name).toString(), selectQuery.value(path).toString()); + folder = Folder(selectQuery.value(id).toULongLong(), selectQuery.value(parentId).toULongLong(), selectQuery.value(name).toString(), selectQuery.value(path).toString()); folder.finished = selectQuery.value(finished).toBool(); folder.completed = selectQuery.value(completed).toBool();