mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-28 00:24:51 +02:00
...
This commit is contained in:
parent
a8ba2c3bfd
commit
4f13036757
1 changed files with 3 additions and 0 deletions
|
|
@ -407,6 +407,9 @@ def add_files(self):
|
|||
self.set_modified()
|
||||
|
||||
def edit_toc(self):
|
||||
if current_container() is None:
|
||||
return error_dialog(self.gui, _('No book opened'), _(
|
||||
'You must open a book before trying to edit the Table of Contents.'), show=True)
|
||||
self.add_savepoint(_('Before: Edit Table of Contents'))
|
||||
d = TOCEditor(title=self.current_metadata.title, parent=self.gui)
|
||||
if d.exec_() != d.Accepted:
|
||||
|
|
|
|||
Loading…
Reference in a new issue