mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 11:04:25 -04:00
This again :/, fixing this needs a separated feature branch and long debuging session.
This commit is contained in:
@ -157,8 +157,6 @@ void GridComicsView::setToolBar(QToolBar *toolBar)
|
||||
|
||||
void GridComicsView::setModel(ComicModel *model)
|
||||
{
|
||||
BOOL setModel = model != this->model;
|
||||
|
||||
if(model == NULL)
|
||||
return;
|
||||
|
||||
@ -171,8 +169,7 @@ void GridComicsView::setModel(ComicModel *model)
|
||||
|
||||
_selectionModel = new QItemSelectionModel(model);
|
||||
|
||||
if(setModel)
|
||||
ctxt->setContextProperty("comicsList", model);
|
||||
ctxt->setContextProperty("comicsList", model);
|
||||
ctxt->setContextProperty("comicsSelection", _selectionModel);
|
||||
ctxt->setContextProperty("contextMenuHelper",this);
|
||||
ctxt->setContextProperty("comicsSelectionHelper", this);
|
||||
|
Reference in New Issue
Block a user