mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Avoid accessing QgsLayoutItemsListView's model before it is defined
This commit is contained in:
parent
3119eb7de2
commit
943d314b76
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user