Skip to content
Permalink
Browse files
don't hide the main window
  • Loading branch information
uclaros authored and nyalldawson committed Sep 26, 2022
1 parent 63d2a6b commit b0e4158021ee503fdd5b1c911aceac420a1b019a
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 b0e4158

Please sign in to comment.