Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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/qgis@6122 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski committed Nov 25, 2006
1 parent c62ac20 commit 6a9a02c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/qgisgui.h
Expand Up @@ -43,7 +43,11 @@ namespace QgisGui
* the dialog is a fixed size and does not have a size grip.
*/
static const Qt::WFlags ModalDialogFlags =
#if QT_VERSION < 0x040200
Qt::WindowTitleHint | Qt::WindowSystemMenuHint | Qt::WindowMaximizeButtonHint;
#else
0;
#endif

}

Expand Down

0 comments on commit 6a9a02c

Please sign in to comment.