From 2de02a0c76738482c3ab5a17b64932b5e5bb1161 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Fri, 25 Mar 2011 06:13:42 +0000 Subject: [PATCH] Fix up verse selection correctly. --- openlp/core/ui/servicemanager.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/openlp/core/ui/servicemanager.py b/openlp/core/ui/servicemanager.py index eeb18cb46..8d0f9df9c 100644 --- a/openlp/core/ui/servicemanager.py +++ b/openlp/core/ui/servicemanager.py @@ -231,7 +231,7 @@ class ServiceManager(QtGui.QWidget): QtCore.QObject.connect(self.themeComboBox, QtCore.SIGNAL(u'activated(int)'), self.onThemeComboBoxSelected) QtCore.QObject.connect(self.serviceManagerList, - QtCore.SIGNAL(u'doubleClicked(QModelIndex)'), self.makeLive) + QtCore.SIGNAL(u'doubleClicked(QModelIndex)'), self.onMakeLive) QtCore.QObject.connect(self.serviceManagerList, QtCore.SIGNAL(u'itemCollapsed(QTreeWidgetItem*)'), self.collapsed) QtCore.QObject.connect(self.serviceManagerList, @@ -1088,12 +1088,20 @@ class ServiceManager(QtGui.QWidget): else: return self.serviceItems[item][u'service_item'] + def onMakeLive(self): + """ + Send the current item to the Live slide controller but triggered + by a tablewidget click event. + """ + self.makeLive() + def makeLive(self, row=-1): """ Send the current item to the Live slide controller ``row`` - Row number to be displayed if from preview + Row number to be displayed if from preview. + -1 is passed if the value is not set """ item, child = self.findServiceItem() if row != -1: