convert to new way of creating dialogs

auto-update
Zlatin Balevsky 2022-02-21 15:12:32 +00:00
parent 37817b0c83
commit d857f127bb
No known key found for this signature in database
GPG Key ID: A72832072D525E41
3 changed files with 1 additions and 7 deletions

View File

@ -41,6 +41,5 @@ class AddContactController {
@ControllerAction
void cancel() {
view.dialog.setVisible(false)
mvcGroup.destroy()
}
}

View File

@ -312,7 +312,7 @@ class MainFrameController {
void addContact() {
def params = [:]
params.core = core
mvcGroup.createMVCGroup("add-contact", params)
mvcGroup.createMVCGroup("add-contact", params).destroy()
}
@ControllerAction

View File

@ -108,11 +108,6 @@ class AddContactView {
dialog.pack()
dialog.setLocationRelativeTo(mainFrame)
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE)
dialog.addWindowListener( new WindowAdapter() {
public void windowClosed(WindowEvent e) {
mvcGroup.destroy()
}
})
dialog.show()
}