From fdc6f481d412500c9af5a255c042d776de861b95 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Tue, 18 Oct 2016 23:04:25 +0200 Subject: [PATCH] Changed assert message --- src/blackcore/application.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/blackcore/application.cpp b/src/blackcore/application.cpp index f89a03a17..5c193abee 100644 --- a/src/blackcore/application.cpp +++ b/src/blackcore/application.cpp @@ -286,7 +286,9 @@ namespace BlackCore CWebDataServices *CApplication::getWebDataServices() const { - Q_ASSERT_X(this->m_webDataServices, Q_FUNC_INFO, "Missing web data services"); + // use hasWebDataServices() to test if services are available + + Q_ASSERT_X(this->m_webDataServices, Q_FUNC_INFO, "Missing web data services, use hasWebDataServices to test if existing"); return this->m_webDataServices.data(); } @@ -1017,7 +1019,6 @@ namespace BlackCore Q_ASSERT_X(QCoreApplication::instance()->thread() == m_accessManager.thread(), Q_FUNC_INFO, "Network manager supposed to be in main thread"); if (QThread::currentThread() != this->m_accessManager.thread()) { -// QTimer::singleShot(0, this, [this, request, callback, method]() { this->httpRequestImpl(request, callback, method); }); QTimer::singleShot(0, this, std::bind(&CApplication::httpRequestImpl, this, request, callback, method)); return nullptr; // not yet started }