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>
This commit is contained in:
Rafael Roquetto 2012-09-28 11:12:32 -03:00 committed by The Qt Project
parent 2e5fef3e66
commit 0c0731208b

View File

@ -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);