OSDN Git Service

set timer ID to invalid after killing the timer in QBalloonTip::timerEvent()
authorIvailo Monev <xakepa10@gmail.com>
Tue, 14 Jun 2022 02:28:49 +0000 (05:28 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Tue, 14 Jun 2022 02:28:49 +0000 (05:28 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/util/qsystemtrayicon.cpp

index 3ce62ec..3b729d3 100644 (file)
@@ -592,6 +592,7 @@ void QBalloonTip::timerEvent(QTimerEvent *e)
 {
     if (e->timerId() == timerId) {
         killTimer(timerId);
+        timerId = -1;
         if (!underMouse())
             close();
         return;