| 138 | return f.parentId; |
| 139 | } |
| 140 | ComicDB DBHelper::getComicInfo(qulonglong libraryId, qulonglong id) |
| 141 | { |
| 142 | QString libraryPath = DBHelper::getLibraries().getPath(libraryId); |
| 143 | QString connectionName = ""; |
| 144 | ComicDB comic; |
| 145 | { |
| 146 | QSqlDatabase db = DataBaseManagement::loadDatabase(LibraryPaths::libraryDataPath(libraryPath)); |
| 147 | |
| 148 | bool found; |
| 149 | comic = DBHelper::loadComic(id, db, found); |
| 150 | connectionName = db.connectionName(); |
| 151 | } |
| 152 | QSqlDatabase::removeDatabase(connectionName); |
| 153 | return comic; |
| 154 | } |
| 155 | |
| 156 | QList<ComicDB> DBHelper::getSiblings(qulonglong libraryId, qulonglong parentId) |
| 157 | { |