mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
...
This commit is contained in:
parent
a8ba2c3bfd
commit
4f13036757
@ -407,6 +407,9 @@ class Boss(QObject):
|
||||
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…
x
Reference in New Issue
Block a user