summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-04-14 11:38:47 (GMT)
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2009-04-14 11:42:57 (GMT)
commit67344b0e7617fde78722440346a779aee0bf1286 (patch)
tree16af0b802d604993eca1f1520f4c6e77deabfcad /src
parentafc51dc4cf5254f6cfb552bc09dd443a8fe0762b (diff)
downloadQt-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.mm3
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);