Skip to content
Permalink
Browse files
don't hide the main window
  • Loading branch information
uclaros authored and nyalldawson committed Sep 25, 2022
1 parent 37437b0 commit 3d05ad3399ae870a3a60f3323467122eb33aa4dc
Showing 1 changed file with 5 additions and 1 deletion.
@@ -31,7 +31,11 @@ QgsExtentGroupBox::QgsExtentGroupBox( QWidget *parent )

connect( mWidget, &QgsExtentWidget::toggleDialogVisibility, this, [ = ]( bool visible )
{
window()->setVisible( visible );
QWidget *w = window();
// Don't hide the main window or we'll get locked outside!
if ( w->objectName() == QLatin1String( "QgisApp" ) )
return;
w->setVisible( visible );
} );
}

0 comments on commit 3d05ad3

Please sign in to comment.