Skip to content
Permalink
Browse files

[composer] Don't save hide bounding box setting between sessions

In practice the workflow is better if this setting is only
temporarily applied to a composer.
  • Loading branch information
nyalldawson committed Nov 7, 2014
1 parent 8b29097 commit fd1ced7f5402cf0c66768f293407de683accb1cf
Showing with 0 additions and 5 deletions.
  1. +0 −5 src/core/composer/qgscomposition.cpp
@@ -216,7 +216,6 @@ void QgsComposition::loadDefaults()
mSnapGridOffsetX = settings.value( "/Composer/defaultSnapGridOffsetX", 0 ).toDouble();
mSnapGridOffsetY = settings.value( "/Composer/defaultSnapGridOffsetY", 0 ).toDouble();
mSnapTolerance = settings.value( "/Composer/defaultSnapTolerancePixels", 5 ).toInt();
mBoundingBoxesVisible = settings.value( "/Composer/showBoundingBoxes", true ).toBool();
}

void QgsComposition::updateBounds()
@@ -2148,10 +2147,6 @@ void QgsComposition::setBoundingBoxesVisible( const bool boundsVisible )
{
mBoundingBoxesVisible = boundsVisible;

//save to settings
QSettings settings;
settings.setValue( "/Composer/showBoundingBoxes", mBoundingBoxesVisible );

if ( mSelectionHandles )
{
mSelectionHandles->update();

0 comments on commit fd1ced7

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