diff --git a/qutebrowser/browser/curcommand.py b/qutebrowser/browser/curcommand.py index e3eb9f325..0761c749e 100644 --- a/qutebrowser/browser/curcommand.py +++ b/qutebrowser/browser/curcommand.py @@ -194,8 +194,11 @@ class CurCommandDispatcher(QObject): target: Where to open the links. """ widget = self._tabs.currentWidget() - widget.hintmanager.start(widget.page_.currentFrame(), widget.url(), - mode, target) + frame = widget.page_.currentFrame() + if frame is None: + message.error("No frame focused!") + else: + widget.hintmanager.start(frame, widget.url(), mode, target) @pyqtSlot(str) def handle_hint_key(self, keystr):