mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Set icon id even if it's 0 as icon numbering starts at 0.
This commit is contained in:
parent
82cb315977
commit
e7a9d57800
@ -262,7 +262,7 @@ Group* Parser::parseGroup()
|
||||
if (iconId < 0) {
|
||||
raiseError();
|
||||
}
|
||||
else if (iconId != 0) {
|
||||
else {
|
||||
group->setIcon(iconId);
|
||||
}
|
||||
}
|
||||
@ -403,7 +403,7 @@ Entry* Parser::parseEntry(bool history)
|
||||
if (iconId < 0) {
|
||||
raiseError();
|
||||
}
|
||||
else if (iconId != 0) {
|
||||
else {
|
||||
entry->setIcon(iconId);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user