From 1590f8c00057c5222e06a1fa141cc83a7afd2d7b Mon Sep 17 00:00:00 2001 From: prculley Date: Tue, 27 Dec 2016 10:17:31 -0600 Subject: [PATCH] bug 9856; fix popup ProgressMonitor to find a parent for set_transient_for --- gramps/gui/widgets/progressdialog.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gramps/gui/widgets/progressdialog.py b/gramps/gui/widgets/progressdialog.py index 3280d0d54..f9fd0c4e3 100644 --- a/gramps/gui/widgets/progressdialog.py +++ b/gramps/gui/widgets/progressdialog.py @@ -496,6 +496,11 @@ class GtkProgressDialog(Gtk.Dialog): Gtk.Dialog.__init__(self) if len(window_params) >= 2: self.set_transient_for(window_params[1]) + else: + for win in Gtk.Window.list_toplevels(): + if win.is_active(): + self.set_transient_for(win) + break if len(window_params) >= 3: flags = window_params[2] if Gtk.DialogFlags.MODAL & flags: