This commit is contained in:
Florian Bruhin 2014-05-22 15:44:16 +02:00
parent c5998bd94b
commit 0c0cb48471
4 changed files with 6 additions and 2 deletions

View File

@ -91,6 +91,7 @@ class QuteBrowser(QApplication):
modeman: The global ModeManager instance.
networkmanager: The global NetworkManager instance.
cookiejar: The global CookieJar instance.
rl_bridge: The ReadlineBridge being used.
_keyparsers: A mapping from modes to keyparsers.
_args: ArgumentParser instance.
_timers: List of used QTimers so they don't get GCed.
@ -118,6 +119,7 @@ class QuteBrowser(QApplication):
self._keyparsers = None
self._crashdlg = None
self._crashlogfile = None
self.rl_bridge = None
self.messagebridge = None
self.stateconfig = None
self.modeman = None
@ -600,6 +602,7 @@ class QuteBrowser(QApplication):
For some reason lastWindowClosing sometimes seem to get emitted twice,
so we make sure we only run once here.
"""
# pylint: disable=too-many-branches
if self._shutting_down:
return
self._shutting_down = True

View File

@ -37,7 +37,7 @@ linecp = None
def init():
"""Read quickmarks from the config file."""
global marks, linecp
global linecp
confdir = get_standard_dir(QStandardPaths.ConfigLocation)
linecp = LineConfigParser(confdir, 'quickmarks')
for line in linecp:
@ -71,6 +71,7 @@ def quickmark_add(url, name):
raise CommandError("Can't set mark with empty URL!")
def set_mark():
"""Really set the quickmark."""
marks[name] = urlstring(url)
if name in marks:

View File

@ -282,6 +282,7 @@ class _DummyUserscriptRunner:
"""
def run(self, _cmd, *_args, _env=None):
"""Print an error as userscripts are not supported."""
message.error("Userscripts are not supported on this platform!")

View File

@ -20,7 +20,6 @@
from PyQt5.QtWidgets import QApplication, QLineEdit
import qutebrowser.commands.utils as cmd
import qutebrowser.keyinput.modeman as modeman
class ReadlineBridge: