Skip to content

Commit c00f2e3

Browse files
author
telwertowski
committedNov 25, 2006
Don't provide Qt::WindowFlags when creating modal dialogs in Qt 4.2.
Prior to 4.2, they are needed to approximate modal behavior on a Mac. As of 4.2, Qt creates modal dialogs depending upon context. The flags are no longer necessay and can cause crashes in some instances. git-svn-id: http://svn.osgeo.org/qgis/trunk@6122 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent f142942 commit c00f2e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/gui/qgisgui.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ namespace QgisGui
4343
* the dialog is a fixed size and does not have a size grip.
4444
*/
4545
static const Qt::WFlags ModalDialogFlags =
46+
#if QT_VERSION < 0x040200
4647
Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMaximizeButtonHint;
48+
#else
49+
0;
50+
#endif
4751

4852
}
4953

0 commit comments

Comments
 (0)
Please sign in to comment.