Skip to content

Commit

Permalink
Fix crash when clicking + in drag and drop form designer and no
Browse files Browse the repository at this point in the history
existing item is selected
  • Loading branch information
nyalldawson committed Apr 14, 2020
1 parent 17a95ef commit b095ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/vector/qgsattributesformproperties.cpp
Expand Up @@ -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() )
Expand Down

0 comments on commit b095ce4

Please sign in to comment.