Skip to content
Permalink
Browse files

Make style dock Apply button always enabled

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 a3a20744bd9eac73fae620fc9864e2a27b58d24b
Showing with 0 additions and 3 deletions.
  1. +0 −3 src/app/qgsmapstylingwidget.cpp
@@ -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 );
}

0 comments on commit a3a2074

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