7439: pre-load alert dialogs crash w/o DISPLAY
This commit is contained in:
parent
9d9d49ffd3
commit
6e6b18656a
@ -406,8 +406,10 @@ 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'):
|
||||||
|
from gramps.gen.constfunc import has_display
|
||||||
|
if has_display():
|
||||||
|
from gramps.gui.dialog import MessageHideDialog
|
||||||
title = _("GExiv2 module not loaded.")
|
title = _("GExiv2 module not loaded.")
|
||||||
message = _("Image metadata functionality will not be available.\n"
|
message = _("Image metadata functionality will not be available.\n"
|
||||||
"To build it for Gramps see "
|
"To build it for Gramps see "
|
||||||
|
@ -59,8 +59,10 @@ 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'):
|
||||||
|
from gramps.gen.constfunc import has_display
|
||||||
|
if has_display():
|
||||||
|
from gramps.gui.dialog import MessageHideDialog
|
||||||
title = _("OsmGpsMap module not loaded.")
|
title = _("OsmGpsMap module not loaded.")
|
||||||
message = _("Geography functionality will not be available.\n"
|
message = _("Geography functionality will not be available.\n"
|
||||||
"To build it for Gramps see "
|
"To build it for Gramps see "
|
||||||
|
Loading…
Reference in New Issue
Block a user