diff --git a/openlp/core/ui/mainwindow.py b/openlp/core/ui/mainwindow.py index 1e9e196e4..da8b72856 100644 --- a/openlp/core/ui/mainwindow.py +++ b/openlp/core/ui/mainwindow.py @@ -635,7 +635,9 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, LogMixin, RegistryPropert # if self.live_controller.display.isVisible(): # self.live_controller.display.setFocus() self.activateWindow() - # We will always have 1 but more need to be processed + # We have -disable-web-security added by our code. + # If a file is passed in we will have that as well so count of 2 + # If not we need to see if we want to use the previous file.so count of 1 if self.application.args and len(self.application.args) > 1: self.open_cmd_line_files(self.application.args) elif Settings().value(self.general_settings_section + '/auto open'): diff --git a/openlp/core/ui/servicemanager.py b/openlp/core/ui/servicemanager.py index aad6f1fec..202a926dd 100644 --- a/openlp/core/ui/servicemanager.py +++ b/openlp/core/ui/servicemanager.py @@ -829,7 +829,7 @@ class ServiceManager(QtWidgets.QWidget, RegistryBase, Ui_ServiceManager, LogMixi self.auto_start_action.setIcon(UiIcons().inactive) self.auto_start_action.setText(translate('OpenLP.ServiceManager', '&Auto Start - inactive')) if service_item['service_item'].is_text(): - for plugin in State().list_plugins(): + for plugin in State().list_plugins(): if plugin.name == 'custom' and plugin.status == PluginStatus.Active: self.create_custom_action.setVisible(True) break diff --git a/openlp/plugins/songs/forms/editsongform.py b/openlp/plugins/songs/forms/editsongform.py index e442e66d5..899e62122 100644 --- a/openlp/plugins/songs/forms/editsongform.py +++ b/openlp/plugins/songs/forms/editsongform.py @@ -417,7 +417,7 @@ class EditSongForm(QtWidgets.QDialog, Ui_EditSongDialog, RegistryProperties): Load the media files into a combobox. """ self.from_media_button.setVisible(False) - for plugin in State().list_plugins(): + for plugin in State().list_plugins(): if plugin.name == 'media' and plugin.status == PluginStatus.Active: self.from_media_button.setVisible(True) self.media_form.populate_files(plugin.media_item.get_list(MediaType.Audio))