fixed sorting in sibblings comics while reading remotely

This commit is contained in:
Luis Ángel San Martín
2015-03-22 12:13:36 +01:00
parent 416e71efd7
commit 1fe860e401
3 changed files with 12 additions and 6 deletions

View File

@ -82,7 +82,7 @@ void ComicController::service(HttpRequest& request, HttpResponse& response)
response.writeText(QString("libraryId:%1\r\n").arg(libraryId));
if(remoteComic) //send previous and next comics id
{
QList<LibraryItem *> siblings = DBHelper::getFolderComicsFromLibrary(libraryId, comic.parentId);
QList<LibraryItem *> siblings = DBHelper::getFolderComicsFromLibrary(libraryId, comic.parentId, true);
bool found = false;
int i;
for(i = 0; i < siblings.length(); i++)