From 05dcc0bac869577cd8430bfde03d8a043401cd39 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Tue, 21 Mar 2023 07:44:21 +0100 Subject: [PATCH] NotificationBox: Hide notification if FreeCAD is deactivated --- src/Gui/NotificationBox.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Gui/NotificationBox.cpp b/src/Gui/NotificationBox.cpp index 79e528d069..3699a37593 100644 --- a/src/Gui/NotificationBox.cpp +++ b/src/Gui/NotificationBox.cpp @@ -246,6 +246,11 @@ bool NotificationLabel::eventFilter(QObject* o, QEvent* e) return insideclick; } } + break; + case QEvent::WindowDeactivate: + hideNotificationImmediately(); + break; + default: break; }