| 154 | } |
| 155 | |
| 156 | QList<ComicDB> DBHelper::getSiblings(qulonglong libraryId, qulonglong parentId) |
| 157 | { |
| 158 | QString libraryPath = DBHelper::getLibraries().getPath(libraryId); |
| 159 | QString connectionName = ""; |
| 160 | QList<ComicDB> comics; |
| 161 | { |
| 162 | QSqlDatabase db = DataBaseManagement::loadDatabase(LibraryPaths::libraryDataPath(libraryPath)); |
| 163 | comics = DBHelper::getSortedComicsFromParent(parentId, db); |
| 164 | connectionName = db.connectionName(); |
| 165 | } |
| 166 | |
| 167 | QSqlDatabase::removeDatabase(connectionName); |
| 168 | return comics; |
| 169 | } |
| 170 | |
| 171 | QString DBHelper::getFolderName(qulonglong libraryId, qulonglong id) |
| 172 | { |