From 3104eac2494b041d0eca9d29ff9430512a597444 Mon Sep 17 00:00:00 2001 From: Martin Wilck Date: Fri, 16 Nov 2018 10:59:30 +0100 Subject: [PATCH 1/2] ui5/systemtray.py: make children exit if no systray found Signed-off-by: Martin Wilck --- ui5/systemtray.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui5/systemtray.py b/ui5/systemtray.py index a0cdaf1..2d6cfd2 100644 --- a/ui5/systemtray.py +++ b/ui5/systemtray.py @@ -848,6 +848,8 @@ def run(read_pipe): i += 1 if not QSystemTrayIcon.isSystemTrayAvailable(): + app.sendMessage('', '', EVENT_SYSTEMTRAY_EXIT) + app.quit() exit(0) else: notifier = QSocketNotifier(read_pipe, QSocketNotifier.Read) -- 2.19.1