mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-16 16:34:47 -04:00
Fixes a bug in the table modify dialog.
This commit is contained in:
parent
2181d83c4c
commit
9ff585c878
@ -109,7 +109,7 @@ public class ElementOrderer<T> extends JDialog {
|
||||
int i = list.getSelectedIndex();
|
||||
if (data.size() > minEntries && i >= 0 && i < data.size())
|
||||
listModel.delete(i);
|
||||
if (data.size() == minEntries)
|
||||
if (data.size() <= minEntries)
|
||||
setEnabled(false);
|
||||
}
|
||||
}.setToolTip(Lang.get("tt_deleteItem")).setEnabledChain(data.size() > minEntries).createJButton());
|
||||
|
Loading…
x
Reference in New Issue
Block a user