From: Aaron Kennedy Date: Mon, 31 Oct 2011 13:10:51 +0000 (+0000) Subject: Only issue non-threaded renderer warning once X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=73bf1bae926daeec135bb9838782916142a840f0;p=konrad%2Fqtdeclarative.git Only issue non-threaded renderer warning once Change-Id: Id278fa28080d829763c907423089897728b01baa Reviewed-by: Samuel Rødal --- diff --git a/src/declarative/items/qquickcanvas.cpp b/src/declarative/items/qquickcanvas.cpp index 163dc88..86d44db 100644 --- a/src/declarative/items/qquickcanvas.cpp +++ b/src/declarative/items/qquickcanvas.cpp @@ -132,9 +132,13 @@ public: : updatePending(false) , animationRunning(false) { - qWarning("QQuickCanvas: using non-threaded render loop. Be very sure to not access scene graph " - "objects outside the QQuickItem::updatePaintNode() call. Failing to do so will cause " - "your code to crash on other platforms!"); + static bool warningMessage = false; + if (!warningMessage) { + warningMessage = true; + qWarning("QQuickCanvas: using non-threaded render loop. Be very sure to not access scene " + "graph objects outside the QQuickItem::updatePaintNode() call. Failing to do so " + "will cause your code to crash on other platforms!"); + } } virtual void paint() {