Skip to content
Permalink
Browse files
georeferencer: fix crash which occured when adding GCPs after the widget
docking has been disabled.

git-svn-id: http://svn.osgeo.org/qgis/trunk@13560 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mmassing committed May 24, 2010
1 parent e93c624 commit 6c517c429922f94064721104d07e4d99f098e533
@@ -117,8 +117,9 @@ void QgsGeorefPluginGui::dockThisWindow( bool dock )
{
if ( mDock )
{
setParent( 0 );
setParent( mIface->mainWindow(), Qt::Window );
show();

mIface->removeDockWidget( mDock );
mDock->setWidget( 0 );
delete mDock;
@@ -134,6 +134,8 @@ void QgsMapCoordsDialog::setToolEmitPoint( bool isEnable )
if ( isEnable )
{
parentWidget()->showMinimized();

assert( parentWidget()->parentWidget() != 0 );
parentWidget()->parentWidget()->activateWindow();
parentWidget()->parentWidget()->raise();

0 comments on commit 6c517c4

Please sign in to comment.