diff --git a/src/calibre/gui2/tweak_book/boss.py b/src/calibre/gui2/tweak_book/boss.py index 7c61e9d146..a2b145944b 100644 --- a/src/calibre/gui2/tweak_book/boss.py +++ b/src/calibre/gui2/tweak_book/boss.py @@ -134,7 +134,7 @@ class Boss(QObject): @property def currently_editing(self): ' Return the name of the file being edited currently or None if no file is being edited ' - return editor_name(self.gui.current_editor) + return editor_name(self.gui.central.current_editor) def preferences(self): orig_spell = tprefs['inline_spell_check']