Skip to content

Commit 3deb211

Browse files
committed
MetaSearch: fix help link, pep8
1 parent 9798c92 commit 3deb211

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

python/plugins/MetaSearch/dialogs/maindialog.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
from MetaSearch.dialogs.recorddialog import RecordDialog
5252
from MetaSearch.dialogs.xmldialog import XMLDialog
5353
from MetaSearch.util import (get_connections_from_file, get_ui_class,
54-
highlight_xml, normalize_text, open_url,
55-
render_template, StaticContext)
54+
get_help_url, highlight_xml, normalize_text,
55+
open_url, render_template, StaticContext)
5656

5757
BASE_CLASS = get_ui_class('maindialog.ui')
5858

@@ -784,7 +784,7 @@ def reset_buttons(self, services=True, xml=True, navigation=True):
784784
def help(self):
785785
"""launch help"""
786786

787-
open_url(self.context.metadata.get('general', 'homepage'))
787+
open_url(get_help_url())
788788

789789
def reject(self):
790790
"""back out of dialogue"""

python/plugins/MetaSearch/util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def get_help_url():
132132
version = QGis.QGIS_VERSION[:3]
133133

134134
path = '%s/%s/docs/user_manual/plugins/plugins_metasearch.html' % \
135-
(version, locale_name)
135+
(version, locale_name)
136136

137137
return '/'.join(['http://docs.qgis.org', path])
138138

0 commit comments

Comments
 (0)