Changeset 88684 in vbox
- Timestamp:
- Apr 23, 2021 4:05:59 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotPane.cpp
r88409 r88684 915 915 /* Update details-widget: */ 916 916 if (pSnapshotItem->isCurrentStateItem()) 917 m_pDetailsWidget->setData(m_comMachine); 917 { 918 if (m_comMachine.isNull()) 919 m_pDetailsWidget->clearData(); 920 else 921 m_pDetailsWidget->setData(m_comMachine); 922 } 918 923 else 919 924 m_pDetailsWidget->setData(*pSnapshotItem, pSnapshotItem->snapshot()); 920 925 } 926 /* Cleanup invisible details-widget: */ 927 else 928 m_pDetailsWidget->clearData(); 921 929 } 922 930 … … 1059 1067 { 1060 1068 if (pSnapshotItem->isCurrentStateItem()) 1061 m_pDetailsWidget->setData(m_comMachine); 1069 { 1070 if (m_comMachine.isNull()) 1071 m_pDetailsWidget->clearData(); 1072 else 1073 m_pDetailsWidget->setData(m_comMachine); 1074 } 1062 1075 else 1063 1076 m_pDetailsWidget->setData(*pSnapshotItem, pSnapshotItem->snapshot()); 1064 1077 } 1078 /* Cleanup invisible details-widget: */ 1079 else 1080 m_pDetailsWidget->clearData(); 1065 1081 1066 1082 /* Notify listeners: */ … … 1355 1371 if (m_comMachine.isNull()) 1356 1372 { 1357 sltHandleCurrentItemChange(); 1373 /* Clear the tree: */ 1374 m_pSnapshotTree->clear(); 1358 1375 return; 1359 1376 }
Note:
See TracChangeset
for help on using the changeset viewer.