diff options
-rw-r--r-- | qt-ui/preferences.cpp | 2 |
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 |