mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-25 00:54:39 +03:00
Fix: #57 Callback DataSource initialized before signals/slots are connected
This commit is contained in:
parent
b9efa71ac4
commit
f613400839
@ -609,9 +609,12 @@ ReportPages ReportEnginePrivate::renderToPages()
|
|||||||
{
|
{
|
||||||
if (m_reportRendering) return ReportPages();
|
if (m_reportRendering) return ReportPages();
|
||||||
m_reportRender = ReportRender::Ptr(new ReportRender);
|
m_reportRender = ReportRender::Ptr(new ReportRender);
|
||||||
|
|
||||||
dataManager()->clearErrors();
|
dataManager()->clearErrors();
|
||||||
dataManager()->connectAllDatabases();
|
dataManager()->connectAllDatabases();
|
||||||
dataManager()->setDesignTime(false);
|
dataManager()->setDesignTime(false);
|
||||||
|
dataManager()->updateDatasourceModel();
|
||||||
|
|
||||||
connect(m_reportRender.data(),SIGNAL(pageRendered(int)),
|
connect(m_reportRender.data(),SIGNAL(pageRendered(int)),
|
||||||
this, SIGNAL(renderPageFinished(int)));
|
this, SIGNAL(renderPageFinished(int)));
|
||||||
if (m_pages.count()){
|
if (m_pages.count()){
|
||||||
|
Loading…
Reference in New Issue
Block a user