This commit is contained in:
Florian Bruhin 2014-09-25 07:58:08 +02:00
parent 143fdc5b9f
commit 55e2ccabf5
4 changed files with 3 additions and 4 deletions

View File

@ -36,7 +36,7 @@ import pygments.formatters
from qutebrowser.commands import userscripts, cmdexc, cmdutils from qutebrowser.commands import userscripts, cmdexc, cmdutils
from qutebrowser.config import config from qutebrowser.config import config
from qutebrowser.browser import hints, quickmarks, webelem from qutebrowser.browser import quickmarks, webelem
from qutebrowser.utils import (message, editor, usertypes, log, qtutils, from qutebrowser.utils import (message, editor, usertypes, log, qtutils,
urlutils, objreg) urlutils, objreg)

View File

@ -351,7 +351,7 @@ class HintManager(QObject):
immediately=True) immediately=True)
return return
qtutils.ensure_valid(url) qtutils.ensure_valid(url)
cmdreg.get('download-manager').get(url, elem.webFrame().page()) objreg.get('download-manager').get(url, elem.webFrame().page())
def _call_userscript(self, url): def _call_userscript(self, url):
"""Call an userscript from a hint.""" """Call an userscript from a hint."""

View File

@ -23,7 +23,7 @@ Module attributes:
STARTCHARS: Possible chars for starting a commandline input. STARTCHARS: Possible chars for starting a commandline input.
""" """
from PyQt5.QtCore import pyqtSignal, pyqtSlot, Qt from PyQt5.QtCore import pyqtSlot, Qt
from qutebrowser.utils import message from qutebrowser.utils import message
from qutebrowser.config import config from qutebrowser.config import config

View File

@ -99,7 +99,6 @@ def _get_registry(scope):
raise ValueError("Invalid scope '{}'!".format(scope)) raise ValueError("Invalid scope '{}'!".format(scope))
def get(name, default=_UNSET, scope='global'): def get(name, default=_UNSET, scope='global'):
"""Helper function to get an object. """Helper function to get an object.