Exemplo n.º 1
0
 def edit_toc(self):
     self.commit_all_editors_to_container()
     self.add_savepoint(_('Edit Table of Contents'))
     d = TOCEditor(title=self.current_metadata.title, parent=self.gui)
     if d.exec_() != d.Accepted:
         self.rewind_savepoint()
         return
     self.update_editors_from_container()
Exemplo n.º 2
0
 def edit_toc(self):
     self.commit_all_editors_to_container()
     self.add_savepoint(_('Edit Table of Contents'))
     d = TOCEditor(title=self.current_metadata.title, parent=self.gui)
     if d.exec_() != d.Accepted:
         self.rewind_savepoint()
         return
     with BusyCursor():
         self.update_editors_from_container()
         self.gui.toc_view.update_if_visible()
Exemplo n.º 3
0
 def edit_toc(self):
     self.commit_all_editors_to_container()
     self.add_savepoint(_('Edit Table of Contents'))
     d = TOCEditor(title=self.current_metadata.title, parent=self.gui)
     if d.exec_() != d.Accepted:
         self.rewind_savepoint()
         return
     with BusyCursor():
         self.set_modified()
         self.update_editors_from_container()
         self.gui.toc_view.update_if_visible()