Skip to content

Commit

Permalink
[ui] Disable advanced config toolbar button when snapping disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and nyalldawson committed Apr 6, 2020
1 parent 689d886 commit 3849a1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/qgssnappingwidget.cpp
Expand Up @@ -401,6 +401,10 @@ void QgsSnappingWidget::toggleSnappingWidgets( bool enabled )
mTypeButton->setEnabled( enabled );
mToleranceSpinBox->setEnabled( enabled );
mUnitsComboBox->setEnabled( enabled );
if ( mEditAdvancedConfigAction )
{
mEditAdvancedConfigAction->setEnabled( enabled );
}
if ( mAdvancedConfigWidget )
{
mAdvancedConfigWidget->setEnabled( enabled );
Expand Down

0 comments on commit 3849a1f

Please sign in to comment.