mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix dispose LibraryTableEditor on dialog close
This commit is contained in:
+2
-5
@@ -799,6 +799,8 @@ public class LibraryTableEditor implements Disposable, LibraryEditorListener {
|
||||
super(parent, true);
|
||||
setTitle(myLibraryTableProvider.getLibraryTablePresentation().getLibraryTableEditorTitle());
|
||||
init();
|
||||
|
||||
Disposer.register(getDisposable(), LibraryTableEditor.this);
|
||||
}
|
||||
|
||||
@SuppressWarnings({"RefusedBequest"})
|
||||
@@ -838,11 +840,6 @@ public class LibraryTableEditor implements Disposable, LibraryEditorListener {
|
||||
}
|
||||
commitChanges();
|
||||
super.doOKAction();
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable(){
|
||||
public void run() {
|
||||
Disposer.dispose(LibraryTableEditor.this);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
protected JComponent createNorthPanel() {
|
||||
|
||||
Reference in New Issue
Block a user