From 7c0a23b1b71d12209a68be1b4a29121d8443ea2f Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 14 Oct 2014 07:58:16 +0200 Subject: [PATCH] Fix IPC when there's no main window available. --- qutebrowser/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qutebrowser/app.py b/qutebrowser/app.py index 52fc6c626..71da17d2a 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -239,7 +239,9 @@ class Application(QApplication): try: window = objreg.get('last-main-window') except KeyError: - message.error("No main window found!") + # We can't display an error here because... duh, there is no + # window. + log.ipc.error("No main window found!") return None else: if open_target != 'tab-silent':