Fix to debug flag DATABLOB_DEBUG
authorTuomas Heimonen <tuomas.heimonen@theqtcompany.com>
Wed, 22 Apr 2015 08:21:06 +0000 (11:21 +0300)
committerSimon Hausmann <simon.hausmann@theqtcompany.com>
Wed, 17 Jun 2015 09:08:28 +0000 (09:08 +0000)
Change-Id: I65ea0283c643371f3debd4a29a5fe4dbcb1c642c
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
src/qml/qml/qqmltypeloader.cpp

index c78bbaf..431c515 100644 (file)
@@ -81,7 +81,7 @@
 
 #define ASSERT_MAINTHREAD() do { if (m_thread->isThisThread()) qFatal("QQmlTypeLoader: Caller not in main thread"); } while (false)
 #define ASSERT_LOADTHREAD() do { if (!m_thread->isThisThread()) qFatal("QQmlTypeLoader: Caller not in load thread"); } while (false)
-#define ASSERT_CALLBACK() do { if(!m_manager || !m_manager->m_thread->isThisThread()) qFatal("QQmlDataBlob: An API call was made outside a callback"); } while(false)
+#define ASSERT_CALLBACK() do { if (!m_typeLoader || !m_typeLoader->m_thread->isThisThread()) qFatal("QQmlDataBlob: An API call was made outside a callback"); } while (false)
 
 #else