From 8cf73d1d8ce5cd31cf0d0989eb91f57d86ec84da Mon Sep 17 00:00:00 2001 From: Laurent Monin Date: Fri, 3 May 2024 22:14:16 +0200 Subject: [PATCH] Fix incorrect conversion, action is None in this case, but key exists --- picard/ui/mainwindow.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/picard/ui/mainwindow.py b/picard/ui/mainwindow.py index 66248dd82..0c0a75b4d 100644 --- a/picard/ui/mainwindow.py +++ b/picard/ui/mainwindow.py @@ -1167,11 +1167,11 @@ class MainWindow(QtWidgets.QMainWindow, PreserveGeometry): self.action_enabled('play_file_action', have_files) self.action_enabled('open_folder_action', have_files) self.action_enabled('cut_action', have_objects) - if 'submit_cluster_action' in self.actions: + if self.actions['submit_cluster_action']: self.action_enabled('submit_cluster_action', can_submit) - if 'submit_file_as_recording_action' in self.actions: + if self.actions['submit_file_as_recording_action']: self.action_enabled('submit_file_as_recording_action', have_files) - if 'submit_file_as_release_action' in self.actions: + if self.actions['submit_file_as_release_action']: self.action_enabled('submit_file_as_release_action', have_files) files = self.get_selected_or_unmatched_files() self.action_enabled('tags_from_filenames_action', bool(files))