Fix IPC when there's no main window available.
This commit is contained in:
parent
0e9177eb4f
commit
7c0a23b1b7
@ -239,7 +239,9 @@ class Application(QApplication):
|
|||||||
try:
|
try:
|
||||||
window = objreg.get('last-main-window')
|
window = objreg.get('last-main-window')
|
||||||
except KeyError:
|
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
|
return None
|
||||||
else:
|
else:
|
||||||
if open_target != 'tab-silent':
|
if open_target != 'tab-silent':
|
||||||
|
Loading…
Reference in New Issue
Block a user