VirtualBox

Changeset 99263 in vbox


Ignore:
Timestamp:
Apr 3, 2023 3:32:13 PM (20 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10067: Notification-center: Do not assert on cleanup if visual representation items missing.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter
Files:
2 edited

Legend:

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

    r99184 r99263  
    495495void UINotificationCenter::sltHandleModelItemRemoved(const QUuid &uId)
    496496{
    497     /* Remove corresponding model item representation: */
    498     AssertReturnVoid(m_items.contains(uId));
    499     delete m_items.take(uId);
     497    /* Remove corresponding model item representation if present: */
     498    if (m_items.contains(uId))
     499        delete m_items.take(uId);
    500500
    501501    /* Hide and slide away if there are no notifications to show: */
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationCenter.h

    r99184 r99263  
    5252class UINotificationModel;
    5353class UINotificationObject;
     54class UINotificationObjectItem;
    5455
    5556/** QWidget-based notification-center overlay. */
     
    202203
    203204    /** Holds the map of item instances. */
    204     QMap<QUuid, QWidget*>  m_items;
     205    QMap<QUuid, UINotificationObjectItem*>  m_items;
    205206
    206207    /** Holds the sliding state-machine instance. */
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