From e7a9d578005e1206f2fd0e301411fcea26de29ba Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Wed, 25 Aug 2010 19:26:01 +0200 Subject: [PATCH] Set icon id even if it's 0 as icon numbering starts at 0. --- src/core/Parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Parser.cpp b/src/core/Parser.cpp index c2652db5..fb6849a8 100644 --- a/src/core/Parser.cpp +++ b/src/core/Parser.cpp @@ -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); } }