Skip to content

Commit

Permalink
MetaSearch: fix help link, pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Feb 24, 2015
1 parent 9798c92 commit 3deb211
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions python/plugins/MetaSearch/dialogs/maindialog.py
Expand Up @@ -51,8 +51,8 @@
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')

Expand Down Expand Up @@ -784,7 +784,7 @@ def reset_buttons(self, services=True, xml=True, navigation=True):
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"""
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/MetaSearch/util.py
Expand Up @@ -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])

Expand Down

0 comments on commit 3deb211

Please sign in to comment.