mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-09-23 14:24:50 -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
1 changed files with 2 additions and 2 deletions
|
@ -262,7 +262,7 @@ Group* Parser::parseGroup()
|
||||||
if (iconId < 0) {
|
if (iconId < 0) {
|
||||||
raiseError();
|
raiseError();
|
||||||
}
|
}
|
||||||
else if (iconId != 0) {
|
else {
|
||||||
group->setIcon(iconId);
|
group->setIcon(iconId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -403,7 +403,7 @@ Entry* Parser::parseEntry(bool history)
|
||||||
if (iconId < 0) {
|
if (iconId < 0) {
|
||||||
raiseError();
|
raiseError();
|
||||||
}
|
}
|
||||||
else if (iconId != 0) {
|
else {
|
||||||
entry->setIcon(iconId);
|
entry->setIcon(iconId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue