Skip to content

Commit

Permalink
Custom projection form : disable edit form when no current projection…
Browse files Browse the repository at this point in the history
… is in the list
  • Loading branch information
Marc Ducobu authored and nyalldawson committed Nov 18, 2022
1 parent de57751 commit 4ca0b4b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/options/qgscustomprojectionoptions.cpp
Expand Up @@ -207,8 +207,11 @@ void QgsCustomProjectionOptionsWidget::pbnRemove_clicked()
mDefinitions.erase( mDefinitions.begin() + row );
}

leName->setEnabled( false );
mCrsDefinitionWidget->setEnabled( false );
if ( mDefinitions.empty() )
{
leName->setEnabled( false );
mCrsDefinitionWidget->setEnabled( false );
}
}

void QgsCustomProjectionOptionsWidget::leNameList_currentItemChanged( QTreeWidgetItem *current, QTreeWidgetItem *previous )
Expand Down

0 comments on commit 4ca0b4b

Please sign in to comment.