From d061c6cc89c1f2553e3b3ce3b38bcfcd92477d12 Mon Sep 17 00:00:00 2001 From: Odizinne Date: Sun, 15 Sep 2024 11:06:33 +0200 Subject: [PATCH] fixed closeEvent warn by accepting the event --- src/HeadsetControlQt/headsetcontrolqt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HeadsetControlQt/headsetcontrolqt.cpp b/src/HeadsetControlQt/headsetcontrolqt.cpp index 16944a0..87d45fc 100644 --- a/src/HeadsetControlQt/headsetcontrolqt.cpp +++ b/src/HeadsetControlQt/headsetcontrolqt.cpp @@ -529,9 +529,9 @@ void HeadsetControlQt::trayIconActivated(QSystemTrayIcon::ActivationReason reaso void HeadsetControlQt::closeEvent(QCloseEvent *event) { + event->accept(); trayIcon->contextMenu()->actions().first()->setText(tr("Show")); sendFirstMinimizeNotification(); - } void HeadsetControlQt::sendFirstMinimizeNotification()