diff options
Diffstat (limited to 'src/controllers/controllerpresetinfo.cpp')
-rw-r--r-- | src/controllers/controllerpresetinfo.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/controllers/controllerpresetinfo.cpp b/src/controllers/controllerpresetinfo.cpp index 34f075de5b..b519330acb 100644 --- a/src/controllers/controllerpresetinfo.cpp +++ b/src/controllers/controllerpresetinfo.cpp @@ -47,16 +47,24 @@ PresetInfo::PresetInfo(const QString& preset_path) } QDomElement dom_author = info.firstChildElement("author"); - if (!dom_author.isNull()) m_author = dom_author.text(); + if (!dom_author.isNull()) { + m_author = dom_author.text(); + } QDomElement dom_description = info.firstChildElement("description"); - if (!dom_description.isNull()) m_description = dom_description.text(); + if (!dom_description.isNull()) { + m_description = dom_description.text(); + } QDomElement dom_forums = info.firstChildElement("forums"); - if (!dom_forums.isNull()) m_forumlink = dom_forums.text(); + if (!dom_forums.isNull()) { + m_forumlink = dom_forums.text(); + } QDomElement dom_wiki = info.firstChildElement("wiki"); - if (!dom_wiki.isNull()) m_wikilink = dom_wiki.text(); + if (!dom_wiki.isNull()) { + m_wikilink = dom_wiki.text(); + } QDomElement devices = info.firstChildElement("devices"); if (!devices.isNull()) { |