mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-30 10:08:54 -04: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
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue