Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 5fcd2dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -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]
{
Expand Down

0 comments on commit 5fcd2dc

Please sign in to comment.