diff --git a/gramps/gui/plug/report/_bookdialog.py b/gramps/gui/plug/report/_bookdialog.py index 009a34f16..fb884f14f 100644 --- a/gramps/gui/plug/report/_bookdialog.py +++ b/gramps/gui/plug/report/_bookdialog.py @@ -954,7 +954,8 @@ class BookDialog(DocReportDialog): self.make_book() except (IOError, OSError) as msg: ErrorDialog(str(msg), parent=self.window) - self.close() + if response != Gtk.ResponseType.DELETE_EVENT: # already closed + self.close() def setup_style_frame(self): pass