From 8eddee320b308768f485acf1a4bbde59b5ae3d99 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Thu, 14 Oct 2021 12:11:13 +0100 Subject: [PATCH] allow opening containing folder only on files in the tree --- .../controllers/com/muwire/gui/MainFrameController.groovy | 2 +- 1 file changed, 1 insertion(+), 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 2ef2347d..c4000cbd 100644 --- a/gui/griffon-app/controllers/com/muwire/gui/MainFrameController.groovy +++ b/gui/griffon-app/controllers/com/muwire/gui/MainFrameController.groovy @@ -634,7 +634,7 @@ class MainFrameController { @ControllerAction void openContainingFolder() { def selected = view.selectedSharedFiles() - if (selected == null || selected.size() != 1) { + if (selected == null || selected.size() != 1 || !view.selectedFolders().isEmpty()) { JOptionPane.showMessageDialog(null, trans("PLEASE_SELECT_ONE_FILE_FOLDER")) return }