forked from openlp/openlp
If presetation loading fails, set slidenumber to 0 to avoid a later error. Fixes bug 1490508.
Fixes: https://launchpad.net/bugs/1490508
This commit is contained in:
parent
a02aca022a
commit
aa8af06f79
@ -63,6 +63,7 @@ class Controller(object):
|
|||||||
if not self.doc.load_presentation():
|
if not self.doc.load_presentation():
|
||||||
# Display error message to user
|
# Display error message to user
|
||||||
# Inform slidecontroller that the action failed?
|
# Inform slidecontroller that the action failed?
|
||||||
|
self.doc.slidenumber = 0
|
||||||
return
|
return
|
||||||
self.doc.slidenumber = slide_no
|
self.doc.slidenumber = slide_no
|
||||||
self.hide_mode = hide_mode
|
self.hide_mode = hide_mode
|
||||||
|
Loading…
Reference in New Issue
Block a user