summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx/qqnxwindow.cpp
diff options
context:
space:
mode:
authorRafael Roquetto <rafael.roquetto.qnx@kdab.com>2012-09-28 11:12:32 -0300
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-28 16:15:28 +0200
commit0c0731208bb42a0e67eab570c04083057bd3faf5 (patch)
tree513808dd2a589e01b8e77c2ba2dc577697fa88d2 /src/plugins/platforms/qnx/qqnxwindow.cpp
parent2e5fef3e66109850302729f816cee1bcd6a7ee6b (diff)
QNX: fix assert condition on the destructor
m_childWindows must be 0 (and not > 0), since at this point it should have no children. Change-Id: I149e34849cab2d56f8617cc04fc6bf95c0476e4c Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxwindow.cpp')
-rw-r--r--src/plugins/platforms/qnx/qqnxwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/qnx/qqnxwindow.cpp b/src/plugins/platforms/qnx/qqnxwindow.cpp
index 393840e8c6..a3abac994b 100644
--- a/src/plugins/platforms/qnx/qqnxwindow.cpp
+++ b/src/plugins/platforms/qnx/qqnxwindow.cpp
@@ -149,7 +149,7 @@ QQnxWindow::~QQnxWindow()
qWindowDebug() << Q_FUNC_INFO << "window =" << window();
// Qt should have already deleted the children before deleting the parent.
- Q_ASSERT(m_childWindows.size() > 0);
+ Q_ASSERT(m_childWindows.size() == 0);
// Remove from plugin's window mapper
QQnxIntegration::removeWindow(m_window);