Skip to content
Permalink
Browse files

Avoid accessing QgsLayoutItemsListView's model before it is defined

  • Loading branch information
uclaros committed Sep 27, 2020
1 parent 3119eb7 commit 943d314b769c62358d6fb45a87635dfc3af3f729
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/layout/qgslayoutitemslistview.cpp
@@ -114,6 +114,8 @@ void QgsLayoutItemsListView::setCurrentLayout( QgsLayout *layout )

void QgsLayoutItemsListView::showContextMenu( QPoint point )
{
if ( !mModel )
return;
QModelIndex index = indexAt( point );
QgsLayoutItem *item = mModel->itemFromIndex( index );
if ( !item )

0 comments on commit 943d314

Please sign in to comment.
You can’t perform that action at this time.