Skip to content

Commit

Permalink
Merge pull request #39033 from uclaros/fix-report-bug
Browse files Browse the repository at this point in the history
Avoid accessing QgsLayoutItemsListView's model before it is defined
  • Loading branch information
elpaso committed Oct 2, 2020
2 parents 375a258 + 943d314 commit 61a71a4
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 61a71a4

Please sign in to comment.