Fixed build on linux

This commit is contained in:
2017-03-28 21:02:38 +02:00
parent 31beac537b
commit 7aa00f1b1e
2 changed files with 24 additions and 1 deletions
+2 -1
View File
@@ -28,7 +28,8 @@ void ReportViewer::setReport(ReportPtr report)
QFile file(reportPath);
file.open(QFile::ReadOnly);
m_report->loadFromByteArray(&file.readAll());
QByteArray data = file.readAll();
m_report->loadFromByteArray(&data);
m_report->setReportFileName(reportPath);
m_report->dataManager()->setReportVariable("dbPath", Context::instance().settings()->value("db/path", "").toString());
}