Skip to content

Commit

Permalink
georeferencer: fix crash which occured when adding GCPs after the widget
Browse files Browse the repository at this point in the history
docking has been disabled.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13560 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mmassing committed May 24, 2010
1 parent becabd6 commit 5a8575f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/georeferencer/qgsgeorefplugingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/georeferencer/qgsmapcoordsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ void QgsMapCoordsDialog::setToolEmitPoint( bool isEnable )
if ( isEnable )
{
parentWidget()->showMinimized();

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

Expand Down

0 comments on commit 5a8575f

Please sign in to comment.