|
|
@ -187,7 +187,8 @@ public abstract class CellQuickEditor extends QuickEditor<ElementCasePane> { |
|
|
|
selectedIndex = comboBox.getSelectedIndex(); |
|
|
|
selectedIndex = comboBox.getSelectedIndex(); |
|
|
|
comboBox.setPopupVisible(false); |
|
|
|
comboBox.setPopupVisible(false); |
|
|
|
comboBox.repaint(); |
|
|
|
comboBox.repaint(); |
|
|
|
if (selectedIndex < cellInsertActions.length) { |
|
|
|
// comboBox.getSelectedIndex()可能返回-1
|
|
|
|
|
|
|
|
if (selectedIndex != -1 && selectedIndex < cellInsertActions.length) { |
|
|
|
cellInsertActions[selectedIndex].actionPerformed(e); |
|
|
|
cellInsertActions[selectedIndex].actionPerformed(e); |
|
|
|
} |
|
|
|
} |
|
|
|
comboBox.setSelectedIndex(currentSelectedIndex); |
|
|
|
comboBox.setSelectedIndex(currentSelectedIndex); |
|
|
|