diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2011-04-11 06:58:09 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2011-04-11 06:58:09 (GMT) |
commit | b554326134bab9ec0a9d8592c3052640ababd5cc (patch) | |
tree | 40a9dc2f1165c53358629763e4abe876b7ed943f /src/gui/kernel | |
parent | baaa5ae00038c34c8a7539229cda083a8afde280 (diff) | |
download | Qt-b554326134bab9ec0a9d8592c3052640ababd5cc.zip Qt-b554326134bab9ec0a9d8592c3052640ababd5cc.tar.gz Qt-b554326134bab9ec0a9d8592c3052640ababd5cc.tar.bz2 |
Cocoa: Fixup wrong code in patch baaa5ae
Sort of imbarassing, but baaa5ae went in before I checked
that the old-behaviour-flag also worked. Which is didn't.
This patch will make things good.
Task-number: QTBUG-11481
Reviewed-by: jbache
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qwidget_mac.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm index aca1d53..8784ffd 100644 --- a/src/gui/kernel/qwidget_mac.mm +++ b/src/gui/kernel/qwidget_mac.mm @@ -2830,7 +2830,7 @@ void QWidgetPrivate::setSubWindowStacking(bool set) if ([pwin isVisible] && (ptype == Qt::Window || ptype == Qt::Dialog) && ![qwin parentWindow] - && (!use_behaviour_qt473 && parent->windowModality() == Qt::ApplicationModal)) { + && (use_behaviour_qt473 || parent->windowModality() == Qt::ApplicationModal)) { NSInteger level = [qwin level]; [pwin addChildWindow:qwin ordered:NSWindowAbove]; if ([qwin level] < level) |