mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[diagrams] Show message on messagebar instead of messagebox
And some indentation updates
This commit is contained in:
parent
c7794ff1e3
commit
13e7b33aaf
@ -490,8 +490,10 @@ void QgsDiagramProperties::apply()
|
||||
|
||||
if ( 0 == mDiagramAttributesTreeWidget->topLevelItemCount() )
|
||||
{
|
||||
QMessageBox::warning( this, tr( "No attributes added." ),
|
||||
tr( "You did not add any attributes to this diagram layer. Please specify the attributes to visualize on the diagrams or disable diagrams." ), QMessageBox::Ok );
|
||||
QgisApp::instance()->messageBar()->pushMessage(
|
||||
tr( "Diagrams: No attributes added." ),
|
||||
tr( "You did not add any attributes to this diagram layer. Please specify the attributes to visualize on the diagrams or disable diagrams." ),
|
||||
QgsMessageBar::WARNING );
|
||||
}
|
||||
|
||||
bool scaleAttributeValueOk = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user