summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/platforms/blackberry/qbbwindow.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/plugins/platforms/blackberry/qbbwindow.cpp b/src/plugins/platforms/blackberry/qbbwindow.cpp
index 04b5ce0..ff66534 100644
--- a/src/plugins/platforms/blackberry/qbbwindow.cpp
+++ b/src/plugins/platforms/blackberry/qbbwindow.cpp
@@ -138,15 +138,13 @@ QBBWindow::~QBBWindow()
qDebug() << "QBBWindow::~QBBWindow - w=" << widget();
#endif
+ // Qt should have already deleted the children before deleting the parent.
+ Q_ASSERT(mChildren.size() == 0);
+
// Remove from parent's Hierarchy.
removeFromParent();
mScreen->updateHierarchy();
- // We shouldn't allow this case unless QT allows it. Does it? Or should we send the
- // handleCloseEvent on all children when this window is deleted?
- if (mChildren.size() > 0)
- qFatal("QBBWindow: window destroyed before children!");
-
// cleanup OpenGL/OpenVG context if it exists
if (mPlatformGlContext != NULL) {
delete mPlatformGlContext;