From 433a7d73cb3d228667dd35f9bce97d5ab9409f5d Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Tue, 11 Oct 2016 13:40:25 +0200 Subject: [PATCH] 9736: Export options 'Preview' buttons create hidden quickreport. --- gramps/gui/plug/quick/_textbufdoc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gramps/gui/plug/quick/_textbufdoc.py b/gramps/gui/plug/quick/_textbufdoc.py index 56b9e81b5..36621f7d4 100644 --- a/gramps/gui/plug/quick/_textbufdoc.py +++ b/gramps/gui/plug/quick/_textbufdoc.py @@ -53,7 +53,7 @@ LEFT,RIGHT,CENTER = 'LEFT','RIGHT','CENTER' _WIDTH_IN_CHARS = 72 class DisplayBuf(ManagedWindow): - def __init__(self, title, document): + def __init__(self, title, document, modal=False): self.title = title ManagedWindow.__init__(self, document.uistate, [], document) @@ -70,6 +70,7 @@ class DisplayBuf(ManagedWindow): scrolled_window.add(document.text_view) self.window.vbox.pack_start(scrolled_window, True, True, 0) self.window.show_all() + self.window.set_modal(modal) def build_menu_names(self, obj): return ('View', _('Quick View')) @@ -154,7 +155,7 @@ class TextBufDoc(BaseDoc, TextDoc): if container: return DocumentManager(_('Quick View'), self, container) else: - DisplayBuf(_('Quick View'), self) + DisplayBuf(_('Quick View'), self, modal=True) return #--------------------------------------------------------------------