mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-14 08:50:08 -05:00
Warn about unsupported icon ids.
This commit is contained in:
parent
8b5dcc7bee
commit
f0e711ac23
@ -17,10 +17,10 @@
|
|||||||
|
|
||||||
#include "KeePass2XmlReader.h"
|
#include "KeePass2XmlReader.h"
|
||||||
|
|
||||||
#include <QtCore/QDebug>
|
|
||||||
#include <QtCore/QFile>
|
#include <QtCore/QFile>
|
||||||
|
|
||||||
#include "core/Database.h"
|
#include "core/Database.h"
|
||||||
|
#include "core/DatabaseIcons.h"
|
||||||
#include "core/Metadata.h"
|
#include "core/Metadata.h"
|
||||||
|
|
||||||
KeePass2XmlReader::KeePass2XmlReader()
|
KeePass2XmlReader::KeePass2XmlReader()
|
||||||
@ -298,6 +298,9 @@ Group* KeePass2XmlReader::parseGroup()
|
|||||||
raiseError();
|
raiseError();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
if (iconId >= DatabaseIcons::iconCount()) {
|
||||||
|
qWarning("KeePass2XmlReader::parseGroup: icon id \"%d\" not supported", iconId);
|
||||||
|
}
|
||||||
group->setIcon(iconId);
|
group->setIcon(iconId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -756,6 +759,6 @@ void KeePass2XmlReader::raiseError()
|
|||||||
|
|
||||||
void KeePass2XmlReader::skipCurrentElement()
|
void KeePass2XmlReader::skipCurrentElement()
|
||||||
{
|
{
|
||||||
qWarning() << "KeePass2XmlReader::skipCurrentElement(): skip: " << m_xml.name();
|
qWarning("KeePass2XmlReader::skipCurrentElement: skip element \"%s\"", qPrintable(m_xml.name().toString()));
|
||||||
m_xml.skipCurrentElement();
|
m_xml.skipCurrentElement();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user