VirtualBox

Changeset 101669 in vbox


Ignore:
Timestamp:
Oct 31, 2023 4:47:47 AM (15 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10067: Notification-center: Do not delete notifications immediately in dismiss/close buttons handlers, perform async delete instead; This should help fixing use-after-free in QToolButton internals.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjectItem.cpp

    r99946 r101669  
    104104                m_pButtonForget->setIconSize(QSize(10, 10));
    105105                connect(m_pButtonForget, &QIToolButton::clicked,
    106                         m_pObject, &UINotificationObject::dismiss);
     106                        m_pObject, &UINotificationObject::dismiss,
     107                        Qt::QueuedConnection);
    107108
    108109                m_pLayoutUpper->addWidget(m_pButtonForget);
     
    116117                m_pButtonClose->setIconSize(QSize(10, 10));
    117118                connect(m_pButtonClose, &QIToolButton::clicked,
    118                         m_pObject, &UINotificationObject::close);
     119                        m_pObject, &UINotificationObject::close,
     120                        Qt::QueuedConnection);
    119121
    120122                m_pLayoutUpper->addWidget(m_pButtonClose);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette