Change prefs.show_units_table to bool

Bool is the correct choice for this option.
int was used before because it was not clear to me how and if I can use
bool in this C file.

Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
Stefan Fuchs 2017-11-21 15:52:01 +01:00 committed by Dirk Hohndel
parent 178dcbc0c6
commit bd88306722
4 changed files with 15 additions and 13 deletions

View file

@ -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) \