Skip to content

Commit 6ddd5e9

Browse files
author
jef
committedJun 30, 2010
fix #2852
git-svn-id: http://svn.osgeo.org/qgis/trunk@13853 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 985c9e7 commit 6ddd5e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4866,7 +4866,7 @@ void QgisApp::showGpsTool()
48664866
}
48674867
else
48684868
{
4869-
mpGpsDock->toggleViewAction();
4869+
mpGpsDock->setVisible( mpGpsDock->isHidden() );
48704870
}
48714871
#endif
48724872
}
@@ -4885,15 +4885,15 @@ void QgisApp::showTileScale()
48854885
mPanelMenu->addAction( mpTileScaleDock->toggleViewAction() );
48864886
// now add our widget to the dock - ownership of the widget is passed to the dock
48874887
mpTileScaleDock->setWidget( mpTileScaleWidget );
4888-
mpTileScaleWidget->show();
4888+
mpTileScaleDock->show();
48894889

48904890
connect( mMapLegend, SIGNAL( currentLayerChanged( QgsMapLayer* ) ),
48914891
mpTileScaleWidget, SLOT( layerChanged( QgsMapLayer* ) ) );
48924892

48934893
}
48944894
else
48954895
{
4896-
mpTileScaleDock->toggleViewAction();
4896+
mpTileScaleDock->setVisible( mpTileScaleDock->isHidden() );
48974897
}
48984898
}
48994899

0 commit comments

Comments
 (0)
Please sign in to comment.