This commit is contained in:
Florian Bruhin 2014-09-30 07:49:01 +02:00
parent f5a4d3a184
commit 85f8366028
2 changed files with 1 additions and 2 deletions

View File

@ -83,7 +83,7 @@ def leave(mode, reason=None):
def maybe_enter(mode, reason=None, override=False): def maybe_enter(mode, reason=None, override=False):
"""Convenience method to enter 'mode' without exceptions.""" """Convenience method to enter 'mode' without exceptions."""
try: try:
objreg.get('mode-manager').enter(mode, reason, override=False) objreg.get('mode-manager').enter(mode, reason, override)
except ModeLockedError: except ModeLockedError:
pass pass

View File

@ -19,7 +19,6 @@
"""Prompt shown in the statusbar.""" """Prompt shown in the statusbar."""
from PyQt5.QtCore import pyqtSignal
from PyQt5.QtWidgets import QHBoxLayout, QWidget, QLineEdit from PyQt5.QtWidgets import QHBoxLayout, QWidget, QLineEdit
from qutebrowser.widgets import misc from qutebrowser.widgets import misc