Handle hint keypress without a context.

Fixes #2098
This commit is contained in:
Florian Bruhin 2017-02-05 18:53:58 +01:00
parent 9b843f24eb
commit 57793fb6d6

View File

@ -753,6 +753,9 @@ class HintManager(QObject):
def handle_partial_key(self, keystr):
"""Handle a new partial keypress."""
if self._context is None:
log.hints.debug("Got key without context!")
return
log.hints.debug("Handling new keystring: '{}'".format(keystr))
for string, label in self._context.labels.items():
try: