mirror of https://github.com/zlatinb/muwire
convert to new way of creating dialogs
parent
37817b0c83
commit
d857f127bb
|
@ -41,6 +41,5 @@ class AddContactController {
|
||||||
@ControllerAction
|
@ControllerAction
|
||||||
void cancel() {
|
void cancel() {
|
||||||
view.dialog.setVisible(false)
|
view.dialog.setVisible(false)
|
||||||
mvcGroup.destroy()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -312,7 +312,7 @@ class MainFrameController {
|
||||||
void addContact() {
|
void addContact() {
|
||||||
def params = [:]
|
def params = [:]
|
||||||
params.core = core
|
params.core = core
|
||||||
mvcGroup.createMVCGroup("add-contact", params)
|
mvcGroup.createMVCGroup("add-contact", params).destroy()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ControllerAction
|
@ControllerAction
|
||||||
|
|
|
@ -108,11 +108,6 @@ class AddContactView {
|
||||||
dialog.pack()
|
dialog.pack()
|
||||||
dialog.setLocationRelativeTo(mainFrame)
|
dialog.setLocationRelativeTo(mainFrame)
|
||||||
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE)
|
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE)
|
||||||
dialog.addWindowListener( new WindowAdapter() {
|
|
||||||
public void windowClosed(WindowEvent e) {
|
|
||||||
mvcGroup.destroy()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
dialog.show()
|
dialog.show()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue