From 0c0731208bb42a0e67eab570c04083057bd3faf5 Mon Sep 17 00:00:00 2001 From: Rafael Roquetto Date: Fri, 28 Sep 2012 11:12:32 -0300 Subject: [PATCH] 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 --- src/plugins/platforms/qnx/qqnxwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/qnx/qqnxwindow.cpp b/src/plugins/platforms/qnx/qqnxwindow.cpp index 393840e8c6e..a3abac994b8 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);