mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-10-01 19:51:31 +03:00
Version 1.4 initial commit
This commit is contained in:
@@ -204,6 +204,10 @@ bool FileXMLReader::prepareReader(QDomDocument *doc)
|
||||
QFile source(m_fileName);
|
||||
if (source.open(QFile::ReadOnly)) {
|
||||
doc->setContent(&source);
|
||||
if (doc->documentElement().nodeName()!="Report") {
|
||||
m_error = QString(QObject::tr("Wrong file format"));
|
||||
return false;
|
||||
}
|
||||
} else {m_error=QString(QObject::tr("File %1 not opened")).arg(m_fileName); return false;}
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user