mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
MetaSearch: fix help link, pep8
This commit is contained in:
parent
9798c92e49
commit
3deb211d14
@ -51,8 +51,8 @@ from MetaSearch.dialogs.newconnectiondialog import NewConnectionDialog
|
||||
from MetaSearch.dialogs.recorddialog import RecordDialog
|
||||
from MetaSearch.dialogs.xmldialog import XMLDialog
|
||||
from MetaSearch.util import (get_connections_from_file, get_ui_class,
|
||||
highlight_xml, normalize_text, open_url,
|
||||
render_template, StaticContext)
|
||||
get_help_url, highlight_xml, normalize_text,
|
||||
open_url, render_template, StaticContext)
|
||||
|
||||
BASE_CLASS = get_ui_class('maindialog.ui')
|
||||
|
||||
@ -784,7 +784,7 @@ class MetaSearchDialog(QDialog, BASE_CLASS):
|
||||
def help(self):
|
||||
"""launch help"""
|
||||
|
||||
open_url(self.context.metadata.get('general', 'homepage'))
|
||||
open_url(get_help_url())
|
||||
|
||||
def reject(self):
|
||||
"""back out of dialogue"""
|
||||
|
@ -132,7 +132,7 @@ def get_help_url():
|
||||
version = QGis.QGIS_VERSION[:3]
|
||||
|
||||
path = '%s/%s/docs/user_manual/plugins/plugins_metasearch.html' % \
|
||||
(version, locale_name)
|
||||
(version, locale_name)
|
||||
|
||||
return '/'.join(['http://docs.qgis.org', path])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user