mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
ugly fix for an ugly bug, crash on grid view setModel when switching comics views
This commit is contained in:
parent
46ea054d1a
commit
7443ed43be
@ -1325,6 +1325,9 @@ void LibraryWindow::loadLibrary(const QString & name)
|
||||
|
||||
void LibraryWindow::loadCoversFromCurrentModel()
|
||||
{
|
||||
//TODO this is a workaround for the crash in GridComicsView::setModel crash on views switching
|
||||
if(typeid(*comicsView) == typeid(GridComicsView))
|
||||
comicsView->setModel(new ComicModel());
|
||||
comicsView->setModel(comicsModel);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user