VirtualBox

Changeset 67489 in vbox for trunk/src


Ignore:
Timestamp:
Jun 20, 2017 9:26:21 AM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8901: Selector UI: Tools pane: Snapshot pane: Fixing regression crash of r116207.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISnapshotPane.cpp

    r67473 r67489  
    687687
    688688                /* Create "current snapshot" item for a newly taken snapshot: */
    689                 m_pCurrentSnapshotItem->setCurrentSnapshotItem(false);
     689                if (m_pCurrentSnapshotItem)
     690                    m_pCurrentSnapshotItem->setCurrentSnapshotItem(false);
    690691                m_pCurrentSnapshotItem = pParentItem
    691692                                       ? new UISnapshotItem(this, pParentItem, comSnapshot)
     
    802803
    803804            /* Move the "current snapshot" token from one to another: */
     805            AssertPtrReturnVoid(m_pCurrentSnapshotItem);
    804806            m_pCurrentSnapshotItem->setCurrentSnapshotItem(false);
    805807            m_pCurrentSnapshotItem = pItem;
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