Esempio 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()
Esempio 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()
Esempio 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()