mirror of https://github.com/zlatinb/muwire
suppress exception when failing to open a shared file
parent
c5580ae528
commit
c0feafbc08
|
@ -291,7 +291,9 @@ class MainFrameController {
|
||||||
if (!view.selectedFolders().isEmpty())
|
if (!view.selectedFolders().isEmpty())
|
||||||
return
|
return
|
||||||
SharedFile sf = selected[0]
|
SharedFile sf = selected[0]
|
||||||
Desktop.getDesktop().open(sf.file)
|
try {
|
||||||
|
Desktop.getDesktop().open(sf.file)
|
||||||
|
} catch (IOException ignore) {} // TODO: show some warning
|
||||||
}
|
}
|
||||||
|
|
||||||
@ControllerAction
|
@ControllerAction
|
||||||
|
|
Loading…
Reference in New Issue