Skip to content
Browse files
fix visibility tracking of tile scale widget
  • Loading branch information
jef-n committed Oct 14, 2012
1 parent 7748c57 commit 813f1bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
@@ -57,6 +57,7 @@ class CORE_EXPORT QgsRasterIterator
@param bandNumber band to read
@param nCols number of columns on output device
@param nRows number of rows on output device
@param block address of block pointer
@param topLeftCol top left column
@param topLeftRow top left row
@return false if the last part was already returned*/
@@ -158,7 +158,7 @@ void QgsTileScaleWidget::showTileScale( QMainWindow *mainWindow )

dock->setWidget( tws );

connect( dock->toggleViewAction(), SIGNAL( triggered( bool ) ), tws, SLOT( scaleEnabled( bool ) ) );
connect( dock, SIGNAL( visibilityChanged( bool ) ), tws, SLOT( scaleEnabled( bool ) ) );

QSettings settings;
dock->setVisible( settings.value( "/UI/tileScaleEnabled", false ).toBool() );

0 comments on commit 813f1bd

Please sign in to comment.