Who forgot the return

This commit is contained in:
Tim Bentley 2013-06-24 17:54:23 +01:00
parent 32c7663a45
commit 26e80be5b7
16 changed files with 19 additions and 19 deletions

View File

@ -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')

View File

@ -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')

View File

@ -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')

View File

@ -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')

View File

@ -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')

View File

@ -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')

View File

@ -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')

View File

@ -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')

View File

@ -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')

View File

@ -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')

View File

@ -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')

View File

@ -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')

View File

@ -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')

View File

@ -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')

View File

@ -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')

View File

@ -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')