Skip to content
Permalink
Browse files

Merge pull request #39033 from uclaros/fix-report-bug

Avoid accessing QgsLayoutItemsListView's model before it is defined
  • Loading branch information
elpaso committed Oct 2, 2020
2 parents 375a258 + 943d314 commit 61a71a417d8ca385729a7552de780f56303c5491
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 61a71a4

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