Fix: #57 Callback DataSource initialized before signals/slots are connected

This commit is contained in:
Arin Alexander 2017-01-05 14:46:06 +03:00
parent 081b422468
commit 2af7c5c7dd

View File

@ -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()){