fixed fixme: constructor

This commit is contained in:
Andreas Preikschat 2013-04-03 12:19:15 +02:00
parent d9f8025042
commit 8761117d34
2 changed files with 3 additions and 5 deletions

View File

@ -184,10 +184,8 @@ class SettingsTab(QtGui.QWidget):
"""
Adds the media controller to the class dynamically
"""
# if not hasattr(self, '_media_controller'):
# self._media_controller = Registry().get('media_controller')
# FIXME: python3
self._media_controller = Registry().get('media_controller')
if not hasattr(self, '_media_controller'):
self._media_controller = Registry().get('media_controller')
return self._media_controller
media_controller = property(_get_media_controller)

View File

@ -55,7 +55,7 @@ class PlayerTab(SettingsTab):
"""
Constructor
"""
self.media_players = self.media_controller.media_players
self.media_players = Registry().get('media_controller').media_players
self.saved_used_players = None
self.icon_path = u':/media/multimedia-player.png'
player_translated = translate('OpenLP.PlayerTab', 'Players')