summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qapplication_s60.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qapplication_s60.cpp b/src/gui/kernel/qapplication_s60.cpp
index 3a7fc4b..854fa07 100644
--- a/src/gui/kernel/qapplication_s60.cpp
+++ b/src/gui/kernel/qapplication_s60.cpp
@@ -320,7 +320,7 @@ void QSymbianControl::ConstructL(bool topLevel, bool desktop)
// We cannot assume that parentless widgets are top-level
QWidget *const parent = qobject_cast<QWidget *>(qwidget->parent());
- if (topLevel or parent)
+ if (topLevel or !parent)
CreateWindowL(S60->windowGroup());
else
CreateWindowL(parent->winId());