From 35a95b1d32736d66419662f68c415f54ab859875 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 27 Feb 2014 19:12:01 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tweak_book/boss.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/tweak_book/boss.py b/src/calibre/gui2/tweak_book/boss.py index 685db9bd67..3d66e433d5 100644 --- a/src/calibre/gui2/tweak_book/boss.py +++ b/src/calibre/gui2/tweak_book/boss.py @@ -174,6 +174,8 @@ class Boss(QObject): if hasattr(path, 'rstrip'): d.set_src(os.path.abspath(path)) if d.exec_() == d.Accepted: + for name in tuple(editors): + self.close_editor(name) from calibre.ebooks.oeb.polish.import_book import import_book_as_epub src, dest = d.data self._clear_notify_data = True