7439: pre-load alert dialogs crash w/o DISPLAY
This commit is contained in:
parent
9d9d49ffd3
commit
6e6b18656a
@ -406,15 +406,17 @@ if available:
|
||||
)
|
||||
else:
|
||||
from gramps.gen.config import config
|
||||
from gramps.gui.dialog import MessageHideDialog
|
||||
if not config.get('interface.ignore-gexiv2'):
|
||||
title = _("GExiv2 module not loaded.")
|
||||
message = _("Image metadata functionality will not be available.\n"
|
||||
"To build it for Gramps see "
|
||||
"http://www.gramps-project.org/wiki/index.php?"
|
||||
"title=GEPS_029:_GTK3-GObject_introspection"
|
||||
"_Conversion#GExiv2_for_Image_metadata")
|
||||
MessageHideDialog(title, message, 'interface.ignore-gexiv2')
|
||||
from gramps.gen.constfunc import has_display
|
||||
if has_display():
|
||||
from gramps.gui.dialog import MessageHideDialog
|
||||
title = _("GExiv2 module not loaded.")
|
||||
message = _("Image metadata functionality will not be available.\n"
|
||||
"To build it for Gramps see "
|
||||
"http://www.gramps-project.org/wiki/index.php?"
|
||||
"title=GEPS_029:_GTK3-GObject_introspection"
|
||||
"_Conversion#GExiv2_for_Image_metadata")
|
||||
MessageHideDialog(title, message, 'interface.ignore-gexiv2')
|
||||
|
||||
register(GRAMPLET,
|
||||
id="Person Residence",
|
||||
|
@ -59,15 +59,17 @@ if repository.enumerate_versions("OsmGpsMap"):
|
||||
|
||||
if not OSMGPSMAP:
|
||||
from gramps.gen.config import config
|
||||
from gramps.gui.dialog import MessageHideDialog
|
||||
if not config.get('interface.ignore-osmgpsmap'):
|
||||
title = _("OsmGpsMap module not loaded.")
|
||||
message = _("Geography functionality will not be available.\n"
|
||||
"To build it for Gramps see "
|
||||
"http://www.gramps-project.org/wiki/index.php?"
|
||||
"title=GEPS_029:_GTK3-GObject_introspection_Conversion"
|
||||
"#OsmGpsMap_for_Geography")
|
||||
MessageHideDialog(title, message, 'interface.ignore-osmgpsmap')
|
||||
from gramps.gen.constfunc import has_display
|
||||
if has_display():
|
||||
from gramps.gui.dialog import MessageHideDialog
|
||||
title = _("OsmGpsMap module not loaded.")
|
||||
message = _("Geography functionality will not be available.\n"
|
||||
"To build it for Gramps see "
|
||||
"http://www.gramps-project.org/wiki/index.php?"
|
||||
"title=GEPS_029:_GTK3-GObject_introspection_Conversion"
|
||||
"#OsmGpsMap_for_Geography")
|
||||
MessageHideDialog(title, message, 'interface.ignore-osmgpsmap')
|
||||
else:
|
||||
# Load the view only if osmgpsmap library is present.
|
||||
register(VIEW,
|
||||
|
Loading…
Reference in New Issue
Block a user