update menu selection when configuration changed in advanced settings

This commit is contained in:
honfika@gmail.com
2015-05-25 09:09:52 +02:00
parent 2167801c1f
commit 0fd4843df9
8 changed files with 100 additions and 22 deletions

View File

@@ -267,7 +267,7 @@ public class AdvancedSettingsDialog extends AppDialog {
for (String name : keys) {
Field field = fields.get(name);
ConfigurationCategory cat = field.getAnnotation(ConfigurationCategory.class);
String scat = cat == null ? "other" : cat.value();
String scat = (cat == null || cat.value().equals("")) ? "other" : cat.value();
if (!categorized.containsKey(scat)) {
categorized.put(scat, new HashMap<>());
}