Fixed Preview Crash Bug 932610

Fixes: https://launchpad.net/bugs/932610
This commit is contained in:
Jonathan Stafford 2012-02-15 18:37:42 +08:00
parent fd5a04cc84
commit d57905f9d8

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