From c0feafbc0837f22caed4960fe5d9e60cab983614 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Fri, 24 Jun 2022 12:49:35 +0100 Subject: [PATCH] suppress exception when failing to open a shared file --- .../controllers/com/muwire/gui/MainFrameController.groovy | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/griffon-app/controllers/com/muwire/gui/MainFrameController.groovy b/gui/griffon-app/controllers/com/muwire/gui/MainFrameController.groovy index 79eb0fb4..42e6d9e0 100644 --- a/gui/griffon-app/controllers/com/muwire/gui/MainFrameController.groovy +++ b/gui/griffon-app/controllers/com/muwire/gui/MainFrameController.groovy @@ -291,7 +291,9 @@ class MainFrameController { if (!view.selectedFolders().isEmpty()) return SharedFile sf = selected[0] - Desktop.getDesktop().open(sf.file) + try { + Desktop.getDesktop().open(sf.file) + } catch (IOException ignore) {} // TODO: show some warning } @ControllerAction