mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
reload scales list only when necessary
This commit is contained in:
parent
fbb7b3c4e0
commit
c4299f4bee
@ -5284,13 +5284,15 @@ void QgisApp::options()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QSettings mySettings;
|
||||||
|
QString oldScales = mySettings.value( "Map/scales", PROJECT_SCALES ).toString();
|
||||||
|
|
||||||
QgsOptions *optionsDialog = new QgsOptions( this );
|
QgsOptions *optionsDialog = new QgsOptions( this );
|
||||||
if ( optionsDialog->exec() )
|
if ( optionsDialog->exec() )
|
||||||
{
|
{
|
||||||
// set the theme if it changed
|
// set the theme if it changed
|
||||||
setTheme( optionsDialog->theme() );
|
setTheme( optionsDialog->theme() );
|
||||||
|
|
||||||
QSettings mySettings;
|
|
||||||
mMapCanvas->enableAntiAliasing( mySettings.value( "/qgis/enable_anti_aliasing" ).toBool() );
|
mMapCanvas->enableAntiAliasing( mySettings.value( "/qgis/enable_anti_aliasing" ).toBool() );
|
||||||
mMapCanvas->useImageToRender( mySettings.value( "/qgis/use_qimage_to_render" ).toBool() );
|
mMapCanvas->useImageToRender( mySettings.value( "/qgis/use_qimage_to_render" ).toBool() );
|
||||||
|
|
||||||
@ -5304,8 +5306,11 @@ void QgisApp::options()
|
|||||||
mRasterFileFilter.clear();
|
mRasterFileFilter.clear();
|
||||||
QgsRasterLayer::buildSupportedRasterFileFilter( mRasterFileFilter );
|
QgsRasterLayer::buildSupportedRasterFileFilter( mRasterFileFilter );
|
||||||
|
|
||||||
|
if ( oldScales != mySettings.value( "Map/scales", PROJECT_SCALES ).toString() )
|
||||||
|
{
|
||||||
mScaleEdit->updateScales();
|
mScaleEdit->updateScales();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
delete optionsDialog;
|
delete optionsDialog;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user