Don't crash without hint context in HintManager._start_cb
This commit is contained in:
parent
b5ab3adc8c
commit
859974fa99
@ -572,6 +572,10 @@ class HintManager(QObject):
|
||||
|
||||
def _start_cb(self, elems):
|
||||
"""Initialize the elements and labels based on the context set."""
|
||||
if self._context is None:
|
||||
log.hints.debug("In _start_cb without context!")
|
||||
return
|
||||
|
||||
if elems is None:
|
||||
message.error("There was an error while getting hint elements")
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user