Signal errors in QXmlStreamWriter upstream.

Unfortunately the method is only avaiable in Qt >= 4.8.
Not much we can do about that.
This commit is contained in:
Felix Geyer 2015-07-20 21:26:00 +02:00
parent abe5e8ecea
commit 0024f2e30f

View File

@ -57,6 +57,12 @@ void KeePass2XmlWriter::writeDatabase(QIODevice* device, Database* db, KeePass2R
m_xml.writeEndElement();
m_xml.writeEndDocument();
#if QT_VERSION >= QT_VERSION_CHECK(4, 8, 0)
if (m_xml.hasError()) {
raiseError(device->errorString());
}
#endif
}
void KeePass2XmlWriter::writeDatabase(const QString& filename, Database* db)