diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-04-14 11:38:47 (GMT) |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2009-04-14 11:42:57 (GMT) |
commit | 67344b0e7617fde78722440346a779aee0bf1286 (patch) | |
tree | 16af0b802d604993eca1f1520f4c6e77deabfcad /src | |
parent | afc51dc4cf5254f6cfb552bc09dd443a8fe0762b (diff) | |
download | Qt-67344b0e7617fde78722440346a779aee0bf1286.zip Qt-67344b0e7617fde78722440346a779aee0bf1286.tar.gz Qt-67344b0e7617fde78722440346a779aee0bf1286.tar.bz2 |
Cocoa: dialogs are sometimes not shown if triggered from outside the app
NSPanels are set to hide when the application becomes inactive by
default. This is not what we wan't for normal dialogs in Qt. This
patch makes this setting explicit, in case the window we're about
to create is a dialog.
Task-number: 250869
Reviewed-by: Trenton Schulz
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/kernel/qwidget_mac.mm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm index 5432c55..e7dfde5 100644 --- a/src/gui/kernel/qwidget_mac.mm +++ b/src/gui/kernel/qwidget_mac.mm @@ -2172,7 +2172,10 @@ void QWidgetPrivate::finishCreateWindow_sys_Cocoa(void * /*NSWindow * */ voidWin if ((popup || type == Qt::Tool || type == Qt::ToolTip) && !q->isModal()) { [windowRef setHidesOnDeactivate:YES]; [windowRef setHasShadow:YES]; + } else { + [windowRef setHidesOnDeactivate:NO]; } + Q_UNUSED(parentWidget); Q_UNUSED(dialog); |