From f6134008392f3f1708d89a4e82e67a1874af8b24 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Thu, 5 Jan 2017 14:39:20 +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 fca8f82..3cfa6d3 100644 --- a/limereport/lrreportengine.cpp +++ b/limereport/lrreportengine.cpp @@ -609,9 +609,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()){