Fix test and remove debug prints

This commit is contained in:
Tomas Groth 2019-05-23 21:41:00 +02:00
parent 3d8d573389
commit a3fdaff2c4
3 changed files with 1 additions and 3 deletions

View File

@ -1303,7 +1303,6 @@ class SlideController(QtWidgets.QWidget, LogMixin, RegistryProperties):
[self.service_item, self.is_live])
# Check id we have tried to go before that start slide
if self.is_live and before_start and before_start[0]:
print('detected before start!')
if self.slide_limits == SlideLimits.Wrap:
self.on_slide_selected_index([self.preview_widget.slide_count() - 1])
elif self.is_live and self.slide_limits == SlideLimits.Next:

View File

@ -553,7 +553,7 @@ class ImpressDocument(PresentationDocument):
titles.append(self.__get_text_from_page(slide_no, TextType.Title).replace('\r\n', ' ')
.replace('\n', ' ').strip())
note = self.__get_text_from_page(slide_no, TextType.Notes)
if not note:
if len(note) == 0:
note = ' '
notes.append(note)
self.save_titles_and_notes(titles, notes)

View File

@ -205,7 +205,6 @@ class Controller(object):
return False
ret = self.doc.previous_step()
self.poll()
print('previous returning: %d' % ret)
return ret
def shutdown(self):