mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Followup 43f150d, don't show diagram warnings if diagrams disabled
(fix #12532)
This commit is contained in:
parent
4bc0078f50
commit
c34f035cf6
@ -521,11 +521,13 @@ void QgsDiagramProperties::apply()
|
||||
QSettings().setValue( "/Windows/VectorLayerProperties/diagram/tab",
|
||||
mDiagramPropertiesTabWidget->currentIndex() );
|
||||
|
||||
bool diagramsEnabled = mDisplayDiagramsGroupBox->isChecked();
|
||||
|
||||
QgsDiagram* diagram = 0;
|
||||
int index = mDiagramTypeComboBox->currentIndex();
|
||||
QString diagramType = mDiagramTypeComboBox->itemData( index ).toString();
|
||||
|
||||
if ( 0 == mDiagramAttributesTreeWidget->topLevelItemCount() )
|
||||
if ( diagramsEnabled && 0 == mDiagramAttributesTreeWidget->topLevelItemCount() )
|
||||
{
|
||||
QgisApp::instance()->messageBar()->pushMessage(
|
||||
tr( "Diagrams: No attributes added." ),
|
||||
@ -568,7 +570,7 @@ void QgsDiagramProperties::apply()
|
||||
}
|
||||
}
|
||||
|
||||
if ( maxVal != DBL_MIN )
|
||||
if ( diagramsEnabled && maxVal != DBL_MIN )
|
||||
{
|
||||
QgisApp::instance()->messageBar()->pushMessage(
|
||||
tr( "Interpolation value" ),
|
||||
|
Loading…
x
Reference in New Issue
Block a user