mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-01 08:04:56 +08:00
GP-4041 - Fixed a Function Editor bag that caused incorrect custom
storage setting when cancelling the storage editor dialog
This commit is contained in:
+2
@@ -52,6 +52,8 @@ class StorageTableCellEditor extends AbstractCellEditor implements TableCellEdit
|
|||||||
@Override
|
@Override
|
||||||
public Component getTableCellEditorComponent(final JTable table, Object value,
|
public Component getTableCellEditorComponent(final JTable table, Object value,
|
||||||
boolean isSelected, int row, int column) {
|
boolean isSelected, int row, int column) {
|
||||||
|
|
||||||
|
storage = null;
|
||||||
String stringValue = value == null ? "" : value.toString();
|
String stringValue = value == null ? "" : value.toString();
|
||||||
JTextField field = new JTextField(stringValue);
|
JTextField field = new JTextField(stringValue);
|
||||||
field.setBackground(getUneditableForegroundColor(isSelected));
|
field.setBackground(getUneditableForegroundColor(isSelected));
|
||||||
|
|||||||
Reference in New Issue
Block a user