Fixes bug 932610 where OpenLP crashes if the "Service Item Slide Limits" was set to "Next Item" and the user tries to advance beyond the ends of a service item in the preview pane using the up/down arrow keys.

bzr-revno: 1880
Fixes: https://launchpad.net/bugs/932610
This commit is contained in:
Jonathan Stafford 2012-02-16 19:02:11 +00:00 committed by Tim Bentley
commit 4016038d33
1 changed files with 2 additions and 2 deletions

View File

@ -1203,7 +1203,7 @@ class SlideController(Controller):
if wrap is None:
if self.slide_limits == SlideLimits.Wrap:
row = 0
elif self.slide_limits == SlideLimits.Next:
elif self.isLive and self.slide_limits == SlideLimits.Next:
self.serviceNext()
return
else:
@ -1230,7 +1230,7 @@ class SlideController(Controller):
if row == -1:
if self.slide_limits == SlideLimits.Wrap:
row = self.previewListWidget.rowCount() - 1
elif self.slide_limits == SlideLimits.Next:
elif self.isLive and self.slide_limits == SlideLimits.Next:
self.keypress_queue.append(ServiceItemAction.PreviousLastSlide)
self._process_queue()
return