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