Commit c6bdb2d2 authored by Tijmen de Mes's avatar Tijmen de Mes

Catch sending pending IMDN message is there is no session

parent 1afdc7cc
......@@ -176,7 +176,10 @@ class Blink(QApplication, metaclass=QSingleton):
self.main_window.preferences_window.close()
if watched is self.chat_window:
if event.type() == QEvent.WindowActivate:
watched.send_pending_imdn_messages(watched.selected_session)
try:
watched.send_pending_imdn_messages(watched.selected_session)
except KeyError:
pass
return False
def customEvent(self, event):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment