mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
Fix crash when clicking + in drag and drop form designer and no
existing item is selected
This commit is contained in:
parent
17a95ef0a5
commit
b095ce470f
@ -658,7 +658,7 @@ void QgsAttributesFormProperties::addTabOrGroupButton()
|
||||
tabList.append( QgsAddTabOrGroup::TabPair( itemData.name(), *it ) );
|
||||
}
|
||||
}
|
||||
QTreeWidgetItem *currentItem = mFormLayoutTree->selectedItems().at( 0 );
|
||||
QTreeWidgetItem *currentItem = mFormLayoutTree->selectedItems().value( 0 );
|
||||
QgsAddTabOrGroup addTabOrGroup( mLayer, tabList, currentItem, this );
|
||||
|
||||
if ( !addTabOrGroup.exec() )
|
||||
|
Loading…
x
Reference in New Issue
Block a user