Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Avoid accessing QgsLayoutItemsListView's model before it is defined
  • Loading branch information
uclaros committed Sep 27, 2020
1 parent 3119eb7 commit 943d314
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/layout/qgslayoutitemslistview.cpp
Expand Up @@ -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 )
Expand Down

0 comments on commit 943d314

Please sign in to comment.