From bba6225abc6c7d8f1642d0c04c819ddc74d426c0 Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Tue, 11 Oct 2022 16:36:23 +0200 Subject: [PATCH] gui: Fix export file chooser dialog Content-type: text/plain It wasn't possible to choose a directory in filechooser dialog using double-click - the dialog returned the directory name instead of listing the directory. Fixes: Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/sepolicy/gui.py", line 2593, in on_browse_select self.export_config(filename) File "/usr/lib/python3.10/site-packages/sepolicy/gui.py", line 2668, in export_config fd = open(filename, 'w') IsADirectoryError: [Errno 21] Is a directory: '/root/Downloads' Signed-off-by: Petr Lautrbach --- python/sepolicy/sepolicy/sepolicy.glade | 1 - 1 file changed, 1 deletion(-) diff --git a/python/sepolicy/sepolicy/sepolicy.glade b/python/sepolicy/sepolicy/sepolicy.glade index 52407887fcfc..0724d6c8caa4 100644 --- a/python/sepolicy/sepolicy/sepolicy.glade +++ b/python/sepolicy/sepolicy/sepolicy.glade @@ -168,7 +168,6 @@ False vertical - False -- 2.38.1