summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx/qqnxscreen.cpp
diff options
context:
space:
mode:
authorThomas McGuire <thomas.mcguire@kdab.com>2012-04-02 11:19:05 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-03 12:45:46 +0200
commitdee26fe973083f8e94fcf5bcbb7fedbe5c35edfd (patch)
treeefdcc191a8eee5f3ab41fd660adaed111696b61c /src/plugins/platforms/qnx/qqnxscreen.cpp
parent47093dbfb457aa46838b5ba7ce685632e2b25650 (diff)
Get rid of false positive warning when stopping video playback
The multimedia library actually creates two windows, and therefore the first call to updateHierarchy() would try to update the z-order of a no longer existing window. Change-Id: I499d049e2885ff848f38d9cc5880aa63235b1b4c Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxscreen.cpp')
-rw-r--r--src/plugins/platforms/qnx/qqnxscreen.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/platforms/qnx/qqnxscreen.cpp b/src/plugins/platforms/qnx/qqnxscreen.cpp
index 183878bd07..7ae1988bff 100644
--- a/src/plugins/platforms/qnx/qqnxscreen.cpp
+++ b/src/plugins/platforms/qnx/qqnxscreen.cpp
@@ -263,8 +263,10 @@ void QQnxScreen::updateHierarchy()
topZorder++;
Q_FOREACH (screen_window_t overlay, m_overlays) {
- if (screen_set_window_property_iv(overlay, SCREEN_PROPERTY_ZORDER, &topZorder) != 0)
- qWarning("QQnxScreen: failed to update z order for overlay, errno=%d", errno);
+ // Do nothing when this fails. This can happen if we have stale windows in mOverlays,
+ // which in turn can happen because a window was removed but we didn't get a notification
+ // yet.
+ screen_set_window_property_iv(overlay, SCREEN_PROPERTY_ZORDER, &topZorder);
topZorder++;
}