Move to reference counting

This commit is contained in:
Tim Bentley 2011-11-27 16:08:42 +00:00
parent 5e702c1782
commit ef884792ac

View File

@ -79,7 +79,7 @@ class SlideController(QtGui.QWidget):
self.songEdit = False
self.selectedRow = 0
self.serviceItem = None
self.accept_keypress = True
self.keypress_count = 0
self.panel = QtGui.QWidget(parent.controlSplitter)
self.slideList = {}
# Layout for holding panel
@ -579,16 +579,18 @@ class SlideController(QtGui.QWidget):
self.display.videoStop()
def servicePrevious(self):
if self.accept_keypress:
self.accept_keypress = False
self.keypress_count += 1
if self.keypress_count == 1:
while self.keypress_count != 0:
Receiver.send_message('servicemanager_previous_item')
self.accept_keypress = True
self.keypress_count -= 1
def serviceNext(self):
if self.accept_keypress:
self.accept_keypress = False
self.keypress_count += 1
if self.keypress_count == 1:
while self.keypress_count != 0:
Receiver.send_message('servicemanager_next_item')
self.accept_keypress = True
self.keypress_count -= 1
def screenSizeChanged(self):