Commit c4299f4 1 parent fbb7b3c commit c4299f4 Copy full SHA for c4299f4
File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -5284,13 +5284,15 @@ void QgisApp::options()
5284
5284
return ;
5285
5285
}
5286
5286
5287
+ QSettings mySettings;
5288
+ QString oldScales = mySettings.value ( " Map/scales" , PROJECT_SCALES ).toString ();
5289
+
5287
5290
QgsOptions *optionsDialog = new QgsOptions ( this );
5288
5291
if ( optionsDialog->exec () )
5289
5292
{
5290
5293
// set the theme if it changed
5291
5294
setTheme ( optionsDialog->theme () );
5292
5295
5293
- QSettings mySettings;
5294
5296
mMapCanvas ->enableAntiAliasing ( mySettings.value ( " /qgis/enable_anti_aliasing" ).toBool () );
5295
5297
mMapCanvas ->useImageToRender ( mySettings.value ( " /qgis/use_qimage_to_render" ).toBool () );
5296
5298
@@ -5304,7 +5306,10 @@ void QgisApp::options()
5304
5306
mRasterFileFilter .clear ();
5305
5307
QgsRasterLayer::buildSupportedRasterFileFilter ( mRasterFileFilter );
5306
5308
5307
- mScaleEdit ->updateScales ();
5309
+ if ( oldScales != mySettings.value ( " Map/scales" , PROJECT_SCALES ).toString () )
5310
+ {
5311
+ mScaleEdit ->updateScales ();
5312
+ }
5308
5313
}
5309
5314
5310
5315
delete optionsDialog;
You can’t perform that action at this time.
0 commit comments