mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
178dcbc0c6
commit
bd88306722
4 changed files with 15 additions and 13 deletions
|
|
@ -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) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue