Skip to content
Browse files

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: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski committed Nov 25, 2006
1 parent f142942 commit c00f2e3042393fee63970b32c0652215aaa5ca11
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gui/qgisgui.h
@@ -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;


0 comments on commit c00f2e3

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