From 26e80be5b76016c9ae2384168753e12af21f9020 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Mon, 24 Jun 2013 17:54:23 +0100 Subject: [PATCH] Who forgot the return --- openlp/core/lib/mediamanageritem.py | 2 +- openlp/core/lib/plugin.py | 2 +- openlp/core/ui/firsttimeform.py | 2 +- openlp/core/ui/maindisplay.py | 2 +- openlp/core/ui/mainwindow.py | 2 +- openlp/core/ui/media/mediaplayer.py | 2 +- openlp/core/ui/pluginform.py | 2 +- openlp/core/ui/servicemanager.py | 2 +- openlp/core/ui/thememanager.py | 2 +- openlp/core/ui/wizard.py | 2 +- openlp/plugins/bibles/forms/editbibleform.py | 2 +- openlp/plugins/bibles/lib/db.py | 2 +- openlp/plugins/bibles/lib/http.py | 8 ++++---- openlp/plugins/songs/forms/duplicatesongremovalform.py | 2 +- openlp/plugins/songs/forms/songmaintenanceform.py | 2 +- openlp/plugins/songs/lib/openlyricsexport.py | 2 +- 16 files changed, 19 insertions(+), 19 deletions(-) diff --git a/openlp/core/lib/mediamanageritem.py b/openlp/core/lib/mediamanageritem.py index 11565607e..973d457bb 100644 --- a/openlp/core/lib/mediamanageritem.py +++ b/openlp/core/lib/mediamanageritem.py @@ -732,7 +732,7 @@ class MediaManagerItem(QtGui.QWidget): Windows needs to access the application in a dynamic manner. """ if os.name == u'nt': - Registry().get(u'application') + return Registry().get(u'application') else: if not hasattr(self, u'_application'): self._application = Registry().get(u'application') diff --git a/openlp/core/lib/plugin.py b/openlp/core/lib/plugin.py index 4a82783e3..a79ba850a 100644 --- a/openlp/core/lib/plugin.py +++ b/openlp/core/lib/plugin.py @@ -426,7 +426,7 @@ class Plugin(QtCore.QObject): Adds the openlp to the class dynamically """ if os.name == u'nt': - Registry().get(u'application') + return Registry().get(u'application') else: if not hasattr(self, u'_application'): self._application = Registry().get(u'application') diff --git a/openlp/core/ui/firsttimeform.py b/openlp/core/ui/firsttimeform.py index d6bb59daf..f06b02a9a 100644 --- a/openlp/core/ui/firsttimeform.py +++ b/openlp/core/ui/firsttimeform.py @@ -488,7 +488,7 @@ class FirstTimeForm(QtGui.QWizard, Ui_FirstTimeWizard): Windows needs to access the application in a dynamic manner. """ if os.name == u'nt': - Registry().get(u'application') + return Registry().get(u'application') else: if not hasattr(self, u'_application'): self._application = Registry().get(u'application') diff --git a/openlp/core/ui/maindisplay.py b/openlp/core/ui/maindisplay.py index ee3ddd6b5..eab89cb7d 100644 --- a/openlp/core/ui/maindisplay.py +++ b/openlp/core/ui/maindisplay.py @@ -499,7 +499,7 @@ class MainDisplay(Display): Windows needs to access the application in a dynamic manner. """ if os.name == u'nt': - Registry().get(u'application') + return Registry().get(u'application') else: if not hasattr(self, u'_application'): self._application = Registry().get(u'application') diff --git a/openlp/core/ui/mainwindow.py b/openlp/core/ui/mainwindow.py index 6a285de4c..ffc0ebf16 100644 --- a/openlp/core/ui/mainwindow.py +++ b/openlp/core/ui/mainwindow.py @@ -1381,7 +1381,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow): Windows needs to access the application in a dynamic manner. """ if os.name == u'nt': - Registry().get(u'application') + return Registry().get(u'application') else: if not hasattr(self, u'_application'): self._application = Registry().get(u'application') diff --git a/openlp/core/ui/media/mediaplayer.py b/openlp/core/ui/media/mediaplayer.py index bfa3bb5da..5d9e3663f 100644 --- a/openlp/core/ui/media/mediaplayer.py +++ b/openlp/core/ui/media/mediaplayer.py @@ -159,7 +159,7 @@ class MediaPlayer(object): Windows needs to access the application in a dynamic manner. """ if os.name == u'nt': - Registry().get(u'application') + return Registry().get(u'application') else: if not hasattr(self, u'_application'): self._application = Registry().get(u'application') diff --git a/openlp/core/ui/pluginform.py b/openlp/core/ui/pluginform.py index 4e766c15b..4f4824fb7 100644 --- a/openlp/core/ui/pluginform.py +++ b/openlp/core/ui/pluginform.py @@ -171,7 +171,7 @@ class PluginForm(QtGui.QDialog, Ui_PluginViewDialog): Windows needs to access the application in a dynamic manner. """ if os.name == u'nt': - Registry().get(u'application') + return Registry().get(u'application') else: if not hasattr(self, u'_application'): self._application = Registry().get(u'application') diff --git a/openlp/core/ui/servicemanager.py b/openlp/core/ui/servicemanager.py index 718a66ec8..9ef1269ba 100644 --- a/openlp/core/ui/servicemanager.py +++ b/openlp/core/ui/servicemanager.py @@ -1592,7 +1592,7 @@ class ServiceManager(QtGui.QWidget, ServiceManagerDialog): Windows needs to access the application in a dynamic manner. """ if os.name == u'nt': - Registry().get(u'application') + return Registry().get(u'application') else: if not hasattr(self, u'_application'): self._application = Registry().get(u'application') diff --git a/openlp/core/ui/thememanager.py b/openlp/core/ui/thememanager.py index 07595b4a5..58f29cab6 100644 --- a/openlp/core/ui/thememanager.py +++ b/openlp/core/ui/thememanager.py @@ -840,7 +840,7 @@ class ThemeManager(QtGui.QWidget): Windows needs to access the application in a dynamic manner. """ if os.name == u'nt': - Registry().get(u'application') + return Registry().get(u'application') else: if not hasattr(self, u'_application'): self._application = Registry().get(u'application') diff --git a/openlp/core/ui/wizard.py b/openlp/core/ui/wizard.py index 0101b9d0e..ca89808ff 100644 --- a/openlp/core/ui/wizard.py +++ b/openlp/core/ui/wizard.py @@ -324,7 +324,7 @@ class OpenLPWizard(QtGui.QWizard): Windows needs to access the application in a dynamic manner. """ if os.name == u'nt': - Registry().get(u'application') + return Registry().get(u'application') else: if not hasattr(self, u'_application'): self._application = Registry().get(u'application') diff --git a/openlp/plugins/bibles/forms/editbibleform.py b/openlp/plugins/bibles/forms/editbibleform.py index 53ab37e0f..4e0a5a7c0 100644 --- a/openlp/plugins/bibles/forms/editbibleform.py +++ b/openlp/plugins/bibles/forms/editbibleform.py @@ -196,7 +196,7 @@ class EditBibleForm(QtGui.QDialog, Ui_EditBibleDialog): Windows needs to access the application in a dynamic manner. """ if os.name == u'nt': - Registry().get(u'application') + return Registry().get(u'application') else: if not hasattr(self, u'_application'): self._application = Registry().get(u'application') diff --git a/openlp/plugins/bibles/lib/db.py b/openlp/plugins/bibles/lib/db.py index b8e85afaf..69ec72ee5 100644 --- a/openlp/plugins/bibles/lib/db.py +++ b/openlp/plugins/bibles/lib/db.py @@ -548,7 +548,7 @@ class BibleDB(QtCore.QObject, Manager): Windows needs to access the application in a dynamic manner. """ if os.name == u'nt': - Registry().get(u'application') + return Registry().get(u'application') else: if not hasattr(self, u'_application'): self._application = Registry().get(u'application') diff --git a/openlp/plugins/bibles/lib/http.py b/openlp/plugins/bibles/lib/http.py index 7e441becc..624836860 100644 --- a/openlp/plugins/bibles/lib/http.py +++ b/openlp/plugins/bibles/lib/http.py @@ -306,7 +306,7 @@ class BGExtract(object): Windows needs to access the application in a dynamic manner. """ if os.name == u'nt': - Registry().get(u'application') + return Registry().get(u'application') else: if not hasattr(self, u'_application'): self._application = Registry().get(u'application') @@ -386,7 +386,7 @@ class BSExtract(object): Windows needs to access the application in a dynamic manner. """ if os.name == u'nt': - Registry().get(u'application') + return Registry().get(u'application') else: if not hasattr(self, u'_application'): self._application = Registry().get(u'application') @@ -490,7 +490,7 @@ class CWExtract(object): Windows needs to access the application in a dynamic manner. """ if os.name == u'nt': - Registry().get(u'application') + return Registry().get(u'application') else: if not hasattr(self, u'_application'): self._application = Registry().get(u'application') @@ -684,7 +684,7 @@ class HTTPBible(BibleDB): Windows needs to access the application in a dynamic manner. """ if os.name == u'nt': - Registry().get(u'application') + return Registry().get(u'application') else: if not hasattr(self, u'_application'): self._application = Registry().get(u'application') diff --git a/openlp/plugins/songs/forms/duplicatesongremovalform.py b/openlp/plugins/songs/forms/duplicatesongremovalform.py index 0b2b2457a..4427bbb31 100644 --- a/openlp/plugins/songs/forms/duplicatesongremovalform.py +++ b/openlp/plugins/songs/forms/duplicatesongremovalform.py @@ -353,7 +353,7 @@ class DuplicateSongRemovalForm(OpenLPWizard): Windows needs to access the application in a dynamic manner. """ if os.name == u'nt': - Registry().get(u'application') + return Registry().get(u'application') else: if not hasattr(self, u'_application'): self._application = Registry().get(u'application') diff --git a/openlp/plugins/songs/forms/songmaintenanceform.py b/openlp/plugins/songs/forms/songmaintenanceform.py index ff9e2d562..2eb895a9a 100644 --- a/openlp/plugins/songs/forms/songmaintenanceform.py +++ b/openlp/plugins/songs/forms/songmaintenanceform.py @@ -530,7 +530,7 @@ class SongMaintenanceForm(QtGui.QDialog, Ui_SongMaintenanceDialog): Windows needs to access the application in a dynamic manner. """ if os.name == u'nt': - Registry().get(u'application') + return Registry().get(u'application') else: if not hasattr(self, u'_application'): self._application = Registry().get(u'application') diff --git a/openlp/plugins/songs/lib/openlyricsexport.py b/openlp/plugins/songs/lib/openlyricsexport.py index be68a55c6..35a9a29ec 100644 --- a/openlp/plugins/songs/lib/openlyricsexport.py +++ b/openlp/plugins/songs/lib/openlyricsexport.py @@ -88,7 +88,7 @@ class OpenLyricsExport(object): Windows needs to access the application in a dynamic manner. """ if os.name == u'nt': - Registry().get(u'application') + return Registry().get(u'application') else: if not hasattr(self, u'_application'): self._application = Registry().get(u'application')