summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qwidget_mac.mm
diff options
context:
space:
mode:
authorPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-09-23 10:42:58 (GMT)
committerPrasanth Ullattil <prasanth.ullattil@nokia.com>2009-09-23 10:49:05 (GMT)
commit9262ee16906fd8e030cd5d2a81d22fe9b791b9f6 (patch)
tree50296d461f8ea09c3293e5510d7f67ed0ae8b1ce /src/gui/kernel/qwidget_mac.mm
parent33d104723a02297ffef53020d42b789284699534 (diff)
downloadQt-9262ee16906fd8e030cd5d2a81d22fe9b791b9f6.zip
Qt-9262ee16906fd8e030cd5d2a81d22fe9b791b9f6.tar.gz
Qt-9262ee16906fd8e030cd5d2a81d22fe9b791b9f6.tar.bz2
Calling raise() on a hidden windows makes it visible on Cocoa.
[NSWindow orderFront:] on a hidden window will make it visible. So raise_sys() will now check if window is visible before this method is called. Task-number: 255428 Reviewed-by: Richard Moe Gustavsen
Diffstat (limited to 'src/gui/kernel/qwidget_mac.mm')
-rw-r--r--src/gui/kernel/qwidget_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm
index 987d2ae..ef71194 100644
--- a/src/gui/kernel/qwidget_mac.mm
+++ b/src/gui/kernel/qwidget_mac.mm
@@ -3613,7 +3613,7 @@ void QWidgetPrivate::raise_sys()
QMacCocoaAutoReleasePool pool;
if (isRealWindow()) {
// Calling orderFront shows the window on Cocoa too.
- if (!q->testAttribute(Qt::WA_DontShowOnScreen)) {
+ if (!q->testAttribute(Qt::WA_DontShowOnScreen) && q->isVisible()) {
[qt_mac_window_for(q) orderFront:qt_mac_window_for(q)];
}
if (qt_mac_raise_process) { //we get to be the active process now