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