mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-09-20 08:05:40 +00:00
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:
parent
abe5e8ecea
commit
0024f2e30f
@ -57,6 +57,12 @@ void KeePass2XmlWriter::writeDatabase(QIODevice* device, Database* db, KeePass2R
|
|||||||
m_xml.writeEndElement();
|
m_xml.writeEndElement();
|
||||||
|
|
||||||
m_xml.writeEndDocument();
|
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)
|
void KeePass2XmlWriter::writeDatabase(const QString& filename, Database* db)
|
||||||
|
Loading…
Reference in New Issue
Block a user