fix: fix setSelectedIndex out of bounds on export dialog (#2579)

Fixes #2579
This commit is contained in:
Jindra Petřík
2026-05-03 12:54:33 +02:00
parent 1f4da67a0f
commit e610dc71be

View File

@@ -521,7 +521,7 @@ public class ExportDialog extends AppDialog {
String key = optionNames[i] + "." + vals[j].toString().toLowerCase(Locale.ENGLISH);
if (exportFormats.contains(key)) {
itemIndex = j;
itemIndex = namesList.size();
}
namesList.add(new ComboValue(vals[j], translate(key)));