mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-29 21:33:13 -08:00
Use a special enum for inherit/enable/disable variables.
This commit is contained in:
1 parent
be934b2fce
commit
afb285a476
6 files changed
+60
-48
No files matched your search
@@ -340,13 +340,13 @@ Group* KeePass2XmlReader::parseGroup()
|
||||
QString str = readString();
|
||||
|
||||
if (str.compare("null", Qt::CaseInsensitive) == 0) {
|
||||
group->setAutoTypeEnabled(-1);
|
||||
group->setAutoTypeEnabled(Group::Inherit);
|
||||
}
|
||||
else if (str.compare("true", Qt::CaseInsensitive) == 0) {
|
||||
group->setAutoTypeEnabled(1);
|
||||
group->setAutoTypeEnabled(Group::Enable);
|
||||
}
|
||||
else if (str.compare("false", Qt::CaseInsensitive) == 0) {
|
||||
group->setAutoTypeEnabled(0);
|
||||
group->setAutoTypeEnabled(Group::Disable);
|
||||
}
|
||||
else {
|
||||
raiseError();
|
||||
@@ -357,13 +357,13 @@ Group* KeePass2XmlReader::parseGroup()
|
||||
QString str = readString();
|
||||
|
||||
if (str.compare("null", Qt::CaseInsensitive) == 0) {
|
||||
group->setSearchingEnabled(-1);
|
||||
group->setSearchingEnabled(Group::Inherit);
|
||||
}
|
||||
else if (str.compare("true", Qt::CaseInsensitive) == 0) {
|
||||
group->setSearchingEnabled(1);
|
||||
group->setSearchingEnabled(Group::Enable);
|
||||
}
|
||||
else if (str.compare("false", Qt::CaseInsensitive) == 0) {
|
||||
group->setSearchingEnabled(0);
|
||||
group->setSearchingEnabled(Group::Disable);
|
||||
}
|
||||
else {
|
||||
raiseError();
|
||||
|
||||
Reference in new issue
Block a user