git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 3.0.1
[fanfix.git]
/
src
/
be
/
nikiroo
/
utils
/
ui
/
ConfigItemBoolean.java
diff --git
a/src/be/nikiroo/utils/ui/ConfigItemBoolean.java
b/src/be/nikiroo/utils/ui/ConfigItemBoolean.java
index 255ec1338f442eaa2f4c5802e1d54a570a035ce9..de89f68c8fac52884f650a1eeead8a614f746553 100644
(file)
--- a/
src/be/nikiroo/utils/ui/ConfigItemBoolean.java
+++ b/
src/be/nikiroo/utils/ui/ConfigItemBoolean.java
@@
-30,7
+30,7
@@
class ConfigItemBoolean<E extends Enum<E>> extends ConfigItem<E> {
@Override
protected Object getFromInfo(int item) {
@Override
protected Object getFromInfo(int item) {
- return
info
.getBoolean(item, true);
+ return
getInfo()
.getBoolean(item, true);
}
@Override
}
@Override
@@
-49,7
+49,7
@@
class ConfigItemBoolean<E extends Enum<E>> extends ConfigItem<E> {
@Override
protected void setToInfo(Object value, int item) {
@Override
protected void setToInfo(Object value, int item) {
-
info
.setBoolean((Boolean) value, item);
+
getInfo()
.setBoolean((Boolean) value, item);
}
@Override
}
@Override
@@
-58,7
+58,8
@@
class ConfigItemBoolean<E extends Enum<E>> extends ConfigItem<E> {
if (getFromInfo(item) == null) {
System.err
.println("No default value given for BOOLEAN parameter \""
if (getFromInfo(item) == null) {
System.err
.println("No default value given for BOOLEAN parameter \""
- + info.getName() + "\", we consider it is FALSE");
+ + getInfo().getName()
+ + "\", we consider it is FALSE");
}
return new JCheckBox();
}
return new JCheckBox();