Skip to content
Permalink
Browse files

[layouts] Fix designer windows is always-on-top on Windows 10

Fixes #17801
  • Loading branch information
nyalldawson committed Jan 21, 2018
1 parent fcbf4cb commit 5fcd2dc4d8863fe5ecb989e3a0ba26b7d5085a4c
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgisapp.cpp
@@ -7359,7 +7359,8 @@ QgsLayoutDesignerDialog *QgisApp::openLayoutDesignerDialog( QgsMasterLayoutInter
}

//nope, so make a new one
QgsLayoutDesignerDialog *newDesigner = new QgsLayoutDesignerDialog( this );
//important - no parent set, otherwise Windows 10 sets the dialog as always on top of the QGIS window!!
QgsLayoutDesignerDialog *newDesigner = new QgsLayoutDesignerDialog( nullptr );
newDesigner->setMasterLayout( layout );
connect( newDesigner, &QgsLayoutDesignerDialog::aboutToClose, this, [this, newDesigner]
{

0 comments on commit 5fcd2dc

Please sign in to comment.
You can’t perform that action at this time.