Fix parentId value when a folder info is requested to the server

This commit is contained in:
Luis Ángel San Martín 2024-01-17 16:23:54 +01:00
parent 50cfb5e505
commit 9ae4911b78

View File

@ -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();