mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix write action allowed assertion
This commit is contained in:
committed by
dmitriy.tseyler
parent
cc66feac51
commit
b15344e343
@@ -1122,13 +1122,11 @@ public class IdeEventQueue extends EventQueue {
|
||||
component -> component instanceof JTable || component instanceof JTree);
|
||||
|
||||
if (owner instanceof JTable && ((JTable)owner).isEditing()) {
|
||||
//noinspection SSBasedInspection
|
||||
SwingUtilities.invokeLater(() -> {((JTable)owner).editingCanceled(null);});
|
||||
((JTable)owner).editingCanceled(null);
|
||||
return true;
|
||||
}
|
||||
if (owner instanceof JTree && ((JTree)owner).isEditing()) {
|
||||
//noinspection SSBasedInspection
|
||||
SwingUtilities.invokeLater(((JTree)owner)::cancelEditing);
|
||||
((JTree)owner).cancelEditing();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user