fixed alert bug

This commit is contained in:
Andreas Preikschat 2011-05-05 20:40:04 +02:00
parent 2a7c5bd4de
commit e1b1f7c6d0
3 changed files with 3 additions and 4 deletions

View File

@ -573,6 +573,9 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
# Call the initialise method to setup plugins.
log.info(u'initialise plugins')
self.pluginManager.initialise_plugins()
# Create the displays as all necessary components are loaded.
self.previewController.screenSizeChanged()
self.liveController.screenSizeChanged()
log.info(u'Load data from Settings')
if QtCore.QSettings().value(u'advanced/save current plugin',
QtCore.QVariant(False)).toBool():

View File

@ -64,8 +64,6 @@ class SlideController(QtGui.QWidget):
self.ratio = float(self.screens.current[u'size'].width()) / \
float(self.screens.current[u'size'].height())
self.image_manager = self.parent.image_manager
self.display = MainDisplay(self, self.image_manager, isLive)
self.display.setup()
self.loopList = [
u'Start Loop',
u'Loop Separator',
@ -326,7 +324,6 @@ class SlideController(QtGui.QWidget):
if self.isLive:
self.setLiveHotkeys(self)
self.__addActionsToWidget(self.previewListWidget)
self.__addActionsToWidget(self.display)
else:
self.setPreviewHotkeys()
self.previewListWidget.addActions(

View File

@ -79,7 +79,6 @@ class AlertsPlugin(Plugin):
action_list = ActionList.get_instance()
action_list.add_action(self.toolsAlertItem, UiStrings().Tools)
self.liveController.alertTab = self.settings_tab
self.liveController.display.alertTab = self.settings_tab
def finalise(self):
"""