Fix 'Generate Book' dialog for crash on 'x' close (#726)

Fixes #10901
This commit is contained in:
Paul Culley 2018-11-27 23:14:42 -06:00 committed by Sam Manzi
parent b934b0d424
commit 8e09235351

View File

@ -954,7 +954,8 @@ class BookDialog(DocReportDialog):
self.make_book() self.make_book()
except (IOError, OSError) as msg: except (IOError, OSError) as msg:
ErrorDialog(str(msg), parent=self.window) ErrorDialog(str(msg), parent=self.window)
self.close() if response != Gtk.ResponseType.DELETE_EVENT: # already closed
self.close()
def setup_style_frame(self): def setup_style_frame(self):
pass pass