Skip to content

Commit

Permalink
disable the scale widget if scale is locked
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jun 8, 2016
1 parent 50cada4 commit 5f50fc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/qgsstatusbarscalewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ QgsStatusBarScaleWidget::QgsStatusBarScaleWidget( QgsMapCanvas *canvas, QWidget
connect( mScale, SIGNAL( scaleChanged( double ) ), this, SLOT( userScale() ) );

connect( mLockButton, SIGNAL( toggled( bool ) ), this, SIGNAL( scaleLockChanged( bool ) ) );
connect( mLockButton, SIGNAL( toggled( bool ) ), mScale, SLOT( setDisabled( bool ) ) );
}

QgsStatusBarScaleWidget::~QgsStatusBarScaleWidget()
Expand Down

0 comments on commit 5f50fc0

Please sign in to comment.