summaryrefslogtreecommitdiffstats
path: root/qt-ui/preferences.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/preferences.cpp')
-rw-r--r--qt-ui/preferences.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp
index f68ab7014..47f8541db 100644
--- a/qt-ui/preferences.cpp
+++ b/qt-ui/preferences.cpp
@@ -143,7 +143,7 @@ void PreferencesDialog::rememberPrefs()
#define GET_BOOL(name, field) \
v = s.value(QString(name)); \
if (v.isValid()) \
- prefs.field = v.toInt() ? true : false; \
+ prefs.field = v.toBool(); \
else \
prefs.field = default_prefs.field