Changeset 99263 in vbox
- Timestamp:
- Apr 3, 2023 3:32:13 PM (20 months ago)
- 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 495 495 void UINotificationCenter::sltHandleModelItemRemoved(const QUuid &uId) 496 496 { 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); 500 500 501 501 /* Hide and slide away if there are no notifications to show: */ -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationCenter.h
r99184 r99263 52 52 class UINotificationModel; 53 53 class UINotificationObject; 54 class UINotificationObjectItem; 54 55 55 56 /** QWidget-based notification-center overlay. */ … … 202 203 203 204 /** Holds the map of item instances. */ 204 QMap<QUuid, QWidget*> m_items;205 QMap<QUuid, UINotificationObjectItem*> m_items; 205 206 206 207 /** Holds the sliding state-machine instance. */
Note:
See TracChangeset
for help on using the changeset viewer.