forked from openlp/openlp
Fix double loop entry
This commit is contained in:
parent
4f629dfd3b
commit
8b8a67c1f7
@ -92,6 +92,7 @@ class SlideController(QtGui.QWidget):
|
|||||||
self.split = 1
|
self.split = 1
|
||||||
self.typePrefix = u'live'
|
self.typePrefix = u'live'
|
||||||
self.keypress_queue = deque()
|
self.keypress_queue = deque()
|
||||||
|
self.keypress_loop = False
|
||||||
else:
|
else:
|
||||||
self.typeLabel.setText(UiStrings().Preview)
|
self.typeLabel.setText(UiStrings().Preview)
|
||||||
self.split = 0
|
self.split = 0
|
||||||
@ -599,11 +600,13 @@ class SlideController(QtGui.QWidget):
|
|||||||
faster than the processing so implement a FIFO queue.
|
faster than the processing so implement a FIFO queue.
|
||||||
"""
|
"""
|
||||||
if len(self.keypress_queue):
|
if len(self.keypress_queue):
|
||||||
while len(self.keypress_queue):
|
while len(self.keypress_queue) and not self.keypress_loop:
|
||||||
|
self.keypress_loop = True
|
||||||
if self.keypress_queue.popleft() == u'previous':
|
if self.keypress_queue.popleft() == u'previous':
|
||||||
Receiver.send_message('servicemanager_previous_item')
|
Receiver.send_message('servicemanager_previous_item')
|
||||||
else:
|
else:
|
||||||
Receiver.send_message('servicemanager_next_item')
|
Receiver.send_message('servicemanager_next_item')
|
||||||
|
self.keypress_loop = False
|
||||||
|
|
||||||
|
|
||||||
def screenSizeChanged(self):
|
def screenSizeChanged(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user