mirror of https://github.com/zlatinb/muwire
avoid exception on preview
parent
3e51bca077
commit
172632b304
|
@ -281,7 +281,7 @@ class MainFrameController {
|
||||||
def downloader = downloads.get(0)
|
def downloader = downloads.get(0)
|
||||||
def params = [:]
|
def params = [:]
|
||||||
params['downloader'] = downloader
|
params['downloader'] = downloader
|
||||||
mvcGroup.createMVCGroup("download-preview", params)
|
mvcGroup.createMVCGroup("download-preview", params).destroy()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ControllerAction
|
@ControllerAction
|
||||||
|
|
|
@ -44,12 +44,6 @@ class DownloadPreviewView {
|
||||||
dialog.setResizable(false)
|
dialog.setResizable(false)
|
||||||
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) {
|
|
||||||
mainFrame.setVisible(false)
|
|
||||||
mvcGroup.destroy()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void mvcGroupInit(Map<String, String> args) {
|
void mvcGroupInit(Map<String, String> args) {
|
||||||
|
|
Loading…
Reference in New Issue