Keep all comics views in memory, views are going to be created lazily. This should fix the issues with QML context deallocating objects between views switching.

This commit is contained in:
Luis Ángel San Martín
2016-04-15 17:05:59 +02:00
parent 4ef185c885
commit 6c76aaffc8
3 changed files with 17 additions and 8 deletions

View File

@ -1267,7 +1267,6 @@ void LibraryWindow::loadLibrary(const QString & name)
void LibraryWindow::loadCoversFromCurrentModel()
{
comicsViewsManager->comicsView->setModel(new ComicModel()); //TODO fix this
comicsViewsManager->comicsView->setModel(comicsModel);
}