summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElvis Angelaccio <elvis.angelaccio@kde.org>2017-02-14 15:10:20 (GMT)
committerElvis Angelaccio <elvis.angelaccio@kde.org>2017-02-14 15:10:20 (GMT)
commit557e20b961fe478ecf7c8a0192830eaf0894098b (patch)
treea65145da547f3e9c4165f90f0a4d060d01a0468a
parent0a7fafc7e2f455a1c4f7ae9a104abce007374572 (diff)
Properly retrieve all boolean properties
Same as commit 0a7fafc7e2 CCMAIL: aleixpol@kde.org
-rw-r--r--src/abstractappearance.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/abstractappearance.cpp b/src/abstractappearance.cpp
index 1086729..e1b663d 100644
--- a/src/abstractappearance.cpp
+++ b/src/abstractappearance.cpp
@@ -48,8 +48,8 @@ QString AbstractAppearance::getIconFallback() const { return m_settings["icon_fa
QString AbstractAppearance::getFont() const { return m_settings["font"]; }
QString AbstractAppearance::getThemeGtk3() const { return m_settings["themegtk3"]; }
QString AbstractAppearance::getToolbarStyle() const { return m_settings["toolbar_style"]; }
-bool AbstractAppearance::getShowIconsInButtons() const { return m_settings["show_icons_buttons"]=="1"; }
-bool AbstractAppearance::getShowIconsInMenus() const { return m_settings["show_icons_menus"]=="1"; }
+bool AbstractAppearance::getShowIconsInButtons() const { return isTrue(m_settings["show_icons_buttons"]); }
+bool AbstractAppearance::getShowIconsInMenus() const { return isTrue(m_settings["show_icons_menus"]); }
bool AbstractAppearance::getPrimaryButtonWarpsSlider() const { return isTrue(m_settings["primary_button_warps_slider"]); }
QRegExp valueRx(" *([a-zA-Z\\-_]+) *= *\"?([^\"\\n]+)\"?", Qt::CaseSensitive, QRegExp::RegExp2);