Skip to content
Permalink
Browse files

reload scales list only when necessary

  • Loading branch information
alexbruy committed Jul 18, 2012
1 parent fbb7b3c commit c4299f4beec766d937ffe75a52b33cf5a7c43cdb
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/app/qgisapp.cpp
@@ -5284,13 +5284,15 @@ void QgisApp::options()
return;
}

QSettings mySettings;
QString oldScales = mySettings.value( "Map/scales", PROJECT_SCALES ).toString();

QgsOptions *optionsDialog = new QgsOptions( this );
if ( optionsDialog->exec() )
{
// set the theme if it changed
setTheme( optionsDialog->theme() );

QSettings mySettings;
mMapCanvas->enableAntiAliasing( mySettings.value( "/qgis/enable_anti_aliasing" ).toBool() );
mMapCanvas->useImageToRender( mySettings.value( "/qgis/use_qimage_to_render" ).toBool() );

@@ -5304,7 +5306,10 @@ void QgisApp::options()
mRasterFileFilter.clear();
QgsRasterLayer::buildSupportedRasterFileFilter( mRasterFileFilter );

mScaleEdit->updateScales();
if ( oldScales != mySettings.value( "Map/scales", PROJECT_SCALES ).toString() )
{
mScaleEdit->updateScales();
}
}

delete optionsDialog;

0 comments on commit c4299f4

Please sign in to comment.
You can’t perform that action at this time.