From 718b10d9f624a69efd5a5134c9c45a5bf393d8a8 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Thu, 28 May 2015 00:56:58 +0200 Subject: [PATCH] refs #434, fixes issue described --- src/blackcore/simulator_common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blackcore/simulator_common.cpp b/src/blackcore/simulator_common.cpp index 74cba880f..5dd0bcd6c 100644 --- a/src/blackcore/simulator_common.cpp +++ b/src/blackcore/simulator_common.cpp @@ -300,7 +300,7 @@ namespace BlackCore if (!snapshot.isRestricted() && !snapshot.isRestrictionChanged()) { return; } Q_ASSERT_X(BlackCore::isCurrentThreadObjectThread(this), Q_FUNC_INFO, "Needs to run in object thread"); - Q_ASSERT_X(snapshot.generatingThreadName() != QThread::currentThread(), Q_FUNC_INFO, "Expect snapshot from background thread"); + Q_ASSERT_X(snapshot.generatingThreadName() != QThread::currentThread()->objectName(), Q_FUNC_INFO, "Expect snapshot from background thread"); // restricted snapshot values? bool changed = false;