mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
added TODO
This commit is contained in:
parent
a9b5b8bd7f
commit
46ea054d1a
@ -127,7 +127,6 @@ void GridComicsView::createCoverSizeSliderWidget()
|
||||
|
||||
void GridComicsView::setToolBar(QToolBar *toolBar)
|
||||
{
|
||||
QLOG_INFO() << "setToolBar";
|
||||
static_cast<QVBoxLayout *>(this->layout())->insertWidget(1,toolBar);
|
||||
this->toolbar = toolBar;
|
||||
|
||||
@ -140,9 +139,6 @@ void GridComicsView::setModel(ComicModel *model)
|
||||
if(model == NULL)
|
||||
return;
|
||||
|
||||
if(this->model == model)
|
||||
return;
|
||||
|
||||
ComicsView::setModel(model);
|
||||
|
||||
QQmlContext *ctxt = view->rootContext();
|
||||
@ -152,6 +148,7 @@ void GridComicsView::setModel(ComicModel *model)
|
||||
|
||||
_selectionModel = new QItemSelectionModel(model);
|
||||
|
||||
//TODO fix crash in the following line on comics views switch
|
||||
ctxt->setContextProperty("comicsList", model);
|
||||
ctxt->setContextProperty("comicsSelection", _selectionModel);
|
||||
ctxt->setContextProperty("contextMenuHelper",this);
|
||||
|
Loading…
Reference in New Issue
Block a user