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