mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -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.recorddialog import RecordDialog
|
||||||
from MetaSearch.dialogs.xmldialog import XMLDialog
|
from MetaSearch.dialogs.xmldialog import XMLDialog
|
||||||
from MetaSearch.util import (get_connections_from_file, get_ui_class,
|
from MetaSearch.util import (get_connections_from_file, get_ui_class,
|
||||||
highlight_xml, normalize_text, open_url,
|
get_help_url, highlight_xml, normalize_text,
|
||||||
render_template, StaticContext)
|
open_url, render_template, StaticContext)
|
||||||
|
|
||||||
BASE_CLASS = get_ui_class('maindialog.ui')
|
BASE_CLASS = get_ui_class('maindialog.ui')
|
||||||
|
|
||||||
@ -784,7 +784,7 @@ class MetaSearchDialog(QDialog, BASE_CLASS):
|
|||||||
def help(self):
|
def help(self):
|
||||||
"""launch help"""
|
"""launch help"""
|
||||||
|
|
||||||
open_url(self.context.metadata.get('general', 'homepage'))
|
open_url(get_help_url())
|
||||||
|
|
||||||
def reject(self):
|
def reject(self):
|
||||||
"""back out of dialogue"""
|
"""back out of dialogue"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user