diff options
Diffstat (limited to 'core/prefs-macros.h')
-rw-r--r-- | core/prefs-macros.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/prefs-macros.h b/core/prefs-macros.h index 7648580ef..6f1b665fd 100644 --- a/core/prefs-macros.h +++ b/core/prefs-macros.h @@ -18,11 +18,11 @@ else \ prefs.units.field = default_prefs.units.field -#define GET_UNIT_INT(name, field) \ - v = s.value(QString(name)); \ - if (v.isValid()) \ - prefs.units.field = v.toInt(); \ - else \ +#define GET_UNIT_BOOL(name, field) \ + v = s.value(QString(name)); \ + if (v.isValid()) \ + prefs.units.field = v.toBool(); \ + else \ prefs.units.field = default_prefs.units.field #define GET_BOOL(name, field) \ |