X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Futils%2Fui%2FConfigItemInteger.java;h=10c5d9dc9fd9d5e488dedcf658c6740ace67fe08;hb=d80040bdb4bacb152c67eb40141f9e1dc1aa3c8b;hp=ebd7b034cd4085d328be1818e53dd7a846ca89a2;hpb=8cea9dc5a38411171d89065e720cd39238ed9ea9;p=nikiroo-utils.git diff --git a/src/be/nikiroo/utils/ui/ConfigItemInteger.java b/src/be/nikiroo/utils/ui/ConfigItemInteger.java index ebd7b03..10c5d9d 100644 --- a/src/be/nikiroo/utils/ui/ConfigItemInteger.java +++ b/src/be/nikiroo/utils/ui/ConfigItemInteger.java @@ -30,7 +30,7 @@ class ConfigItemInteger> extends ConfigItem { @Override protected Object getFromInfo(int item) { - return info.getInteger(item, false); + return getInfo().getInteger(item, true); } @Override @@ -43,11 +43,11 @@ class ConfigItemInteger> extends ConfigItem { @Override protected void setToInfo(Object value, int item) { - info.setInteger((Integer) value, item); + getInfo().setInteger((Integer) value, item); } @Override - protected JComponent createField(int item) { + protected JComponent createEmptyField(int item) { return new JSpinner(); } }