mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 15:04:40 -04:00
Qt 4.8.5
fixed comiccontroller, now ComicFiles are loaded in a background thread (7z.dll) fixed local comunications, no more read/write locks
This commit is contained in:
@ -50,16 +50,13 @@ void ComicController::service(HttpRequest& request, HttpResponse& response)
|
||||
if(comicFile != NULL)
|
||||
{
|
||||
QThread * thread = NULL;
|
||||
if (typeid(*comicFile) != typeid(FileComic))
|
||||
{
|
||||
thread = new QThread();
|
||||
|
||||
comicFile->moveToThread(thread);
|
||||
thread = new QThread();
|
||||
|
||||
connect(thread, SIGNAL(started()), comicFile, SLOT(process()));
|
||||
connect(thread, SIGNAL(finished()), thread, SLOT(deleteLater()));
|
||||
comicFile->moveToThread(thread);
|
||||
|
||||
}
|
||||
connect(thread, SIGNAL(started()), comicFile, SLOT(process()));
|
||||
connect(thread, SIGNAL(finished()), thread, SLOT(deleteLater()));
|
||||
|
||||
comicFile->load(libraries.value(libraryName)+comic.path);
|
||||
|
||||
|
Reference in New Issue
Block a user