mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fix #8776
Set the canvas color in 'qgsprojectproperties::apply()' before refresh
This commit is contained in:
parent
df672e88f1
commit
b2ad0a9bb9
@ -608,6 +608,7 @@ void QgsProjectProperties::apply()
|
||||
QgsProject::instance()->writeEntry( "Gui", "/CanvasColorRedPart", myColor.red() );
|
||||
QgsProject::instance()->writeEntry( "Gui", "/CanvasColorGreenPart", myColor.green() );
|
||||
QgsProject::instance()->writeEntry( "Gui", "/CanvasColorBluePart", myColor.blue() );
|
||||
mMapCanvas->setCanvasColor( myColor );
|
||||
|
||||
//save project scales
|
||||
QStringList myScales;
|
||||
@ -813,7 +814,6 @@ void QgsProjectProperties::apply()
|
||||
|
||||
QgsProject::instance()->relationManager()->setRelations( mRelationManagerDlg->relations() );
|
||||
|
||||
//todo XXX set canvas color
|
||||
emit refresh();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user