8128: GtkDialog mapped without a transient parent (*.gpr.py)

This commit is contained in:
Paul Franklin 2016-09-11 15:05:51 -07:00
parent 84047260c6
commit 645bef8f5d
2 changed files with 14 additions and 6 deletions

View File

@ -422,9 +422,13 @@ else:
message = _("Image metadata functionality will not be available.\n"
"To build it for Gramps see "
"%(gramps_wiki_build_gexiv2_url)s" % gexiv2_dict )
MessageHideDialog(title, message,
'interface.ignore-gexiv2',
parent=uistate.window)
if uistate:
MessageHideDialog(title, message,
'interface.ignore-gexiv2',
parent=uistate.window)
else:
MessageHideDialog(title, message,
'interface.ignore-gexiv2')
register(GRAMPLET,
id="Person Residence",

View File

@ -72,9 +72,13 @@ if not OSMGPSMAP:
MESSAGE = _("Geography functionality will not be available.\n"
"To build it for Gramps see "
"%(gramps_wiki_build_osmgps_url)s") % OSMGPS_DICT
MessageHideDialog(TITLE, MESSAGE,
'interface.ignore-osmgpsmap',
parent=uistate.window)
if uistate:
MessageHideDialog(TITLE, MESSAGE,
'interface.ignore-osmgpsmap',
parent=uistate.window)
else:
MessageHideDialog(TITLE, MESSAGE,
'interface.ignore-osmgpsmap')
else:
# Load the view only if osmgpsmap library is present.
register(VIEW,