Skip to content
Permalink
Browse files

Disable snap to grid by default

  • Loading branch information
nyalldawson committed Mar 23, 2020
1 parent 681d12e commit 4e1ebf00f03cafeb40e8b0825c29c577baf07dd7
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/processing/models/qgsmodeldesignerdialog.cpp
@@ -134,7 +134,7 @@ QgsModelDesignerDialog::QgsModelDesignerDialog( QWidget *parent, Qt::WindowFlags
connect( mActionDeleteComponents, &QAction::triggered, this, &QgsModelDesignerDialog::deleteSelected );
connect( mActionSnapSelected, &QAction::triggered, mView, &QgsModelGraphicsView::snapSelected );

mActionSnappingEnabled->setChecked( settings.value( QStringLiteral( "/Processing/Modeler/enableSnapToGrid" ), true ).toBool() );
mActionSnappingEnabled->setChecked( settings.value( QStringLiteral( "/Processing/Modeler/enableSnapToGrid" ), false ).toBool() );
connect( mActionSnappingEnabled, &QAction::toggled, this, [ = ]( bool enabled )
{
mView->snapper()->setSnapToGrid( enabled );

0 comments on commit 4e1ebf0

Please sign in to comment.
You can’t perform that action at this time.