7092: API for reporting issues ["interim" solution, from Nick Hall]
svn: r23360
This commit is contained in:
parent
a1c179d679
commit
d1e4016769
@ -210,6 +210,7 @@ register('interface.filter-editor-width', 400)
|
||||
register('interface.filter-editor-height', 350)
|
||||
register('interface.fullscreen', False)
|
||||
register('interface.height', 500)
|
||||
register('interface.ignore-osmgpsmap', False)
|
||||
register('interface.lds-height', 450)
|
||||
register('interface.lds-width', 600)
|
||||
register('interface.location-height', 250)
|
||||
|
@ -38,9 +38,12 @@ try :
|
||||
osmgpsmap.__version__)
|
||||
except:
|
||||
OSMGPSMAP = False
|
||||
import logging
|
||||
logging.warning(_("WARNING: osmgpsmap module not loaded. "
|
||||
"Geography functionality will not be available."))
|
||||
import config
|
||||
if not config.get('interface.ignore-osmgpsmap'):
|
||||
from QuestionDialog import MessageHideDialog
|
||||
title = _("OsmGpsMap module not loaded.")
|
||||
message = _("Geography functionality will not be available.")
|
||||
MessageHideDialog(title, message, 'interface.ignore-osmgpsmap')
|
||||
|
||||
if OSMGPSMAP:
|
||||
# Load the view only if osmgpsmap library is present.
|
||||
|
Loading…
Reference in New Issue
Block a user