Categorized renderer: synchronize edit ramp button state on undo

This commit is contained in:
Matthias Kuhn 2016-06-11 10:03:28 +02:00
parent 7692107e62
commit 4c886ce8ec

View File

@ -532,6 +532,10 @@ void QgsCategorizedSymbolRendererV2Widget::updateUiFromRenderer()
cbxInvertedColorRamp->setChecked( mRenderer->invertedColorRamp() );
}
if ( cboCategorizedColorRamp->currentText() == tr( "Random colors" ) )
mButtonEditRamp->setEnabled( false );
else
mButtonEditRamp->setEnabled( true );
}
QgsFeatureRendererV2* QgsCategorizedSymbolRendererV2Widget::renderer()