From 2af7c5c7ddd109d3b9afbe3774f1001bb4e6f9ab Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Thu, 5 Jan 2017 14:46:06 +0300 Subject: [PATCH] Fix: #57 Callback DataSource initialized before signals/slots are connected --- limereport/lrreportengine.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/limereport/lrreportengine.cpp b/limereport/lrreportengine.cpp index a7eaa36..62d75bb 100644 --- a/limereport/lrreportengine.cpp +++ b/limereport/lrreportengine.cpp @@ -664,9 +664,12 @@ ReportPages ReportEnginePrivate::renderToPages() { if (m_reportRendering) return ReportPages(); m_reportRender = ReportRender::Ptr(new ReportRender); + dataManager()->clearErrors(); dataManager()->connectAllDatabases(); dataManager()->setDesignTime(false); + dataManager()->updateDatasourceModel(); + connect(m_reportRender.data(),SIGNAL(pageRendered(int)), this, SIGNAL(renderPageFinished(int))); if (m_pages.count()){