Skip to content

Commit

Permalink
[relations] No crash when clicking remove with no selection
Browse files Browse the repository at this point in the history
Fix #9224
  • Loading branch information
m-kuhn committed Dec 18, 2013
1 parent 9d69374 commit ffc1aba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsrelationmanagerdialog.cpp
Expand Up @@ -118,6 +118,7 @@ void QgsRelationManagerDialog::on_mBtnAddRelation_clicked()

void QgsRelationManagerDialog::on_mBtnRemoveRelation_clicked()
{
if ( mRelationsTable->currentIndex().isValid() )
mRelationsTable->removeRow( mRelationsTable->currentItem()->row() );
}

Expand Down

0 comments on commit ffc1aba

Please sign in to comment.