Skip to content

Commit

Permalink
Make style dock Apply button always enabled
Browse files Browse the repository at this point in the history
Just in case we miss signals which trigger the live update, it's
safer to give users an option to manually apply changes too
  • Loading branch information
nyalldawson committed Jun 9, 2016
1 parent 31c572f commit a3a2074
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/app/qgsmapstylingwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,9 @@ QgsMapStylingWidget::QgsMapStylingWidget( QgsMapCanvas* canvas, QList<QgsMapStyl
connect( mAutoApplyTimer, SIGNAL( timeout() ), this, SLOT( apply() ) );

connect( mOptionsListWidget, SIGNAL( currentRowChanged( int ) ), this, SLOT( updateCurrentWidgetLayer() ) );
connect( mLiveApplyCheck, SIGNAL( toggled( bool ) ), mButtonBox->button( QDialogButtonBox::Apply ), SLOT( setDisabled( bool ) ) );
connect( mButtonBox->button( QDialogButtonBox::Apply ), SIGNAL( clicked() ), this, SLOT( apply() ) );
connect( mLayerCombo, SIGNAL( layerChanged( QgsMapLayer* ) ), this, SLOT( setLayer( QgsMapLayer* ) ) );

mButtonBox->button( QDialogButtonBox::Apply )->setEnabled( false );

mStackedWidget->setCurrentIndex( 0 );
}

Expand Down

0 comments on commit a3a2074

Please sign in to comment.