Changeset 93733 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Feb 14, 2022 4:21:11 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/activity/vmactivity/UIVMActivityMonitor.cpp
r93115 r93733 952 952 void UIVMActivityMonitor::openSession() 953 953 { 954 if (!m_comSession.isNull()) 955 return; 954 956 m_comSession = uiCommon().openSession(m_comMachine.GetId(), KLockType_Shared); 955 957 AssertReturnVoid(!m_comSession.isNull()); … … 1160 1162 if (m_comMachine.GetId() != uId) 1161 1163 return; 1162 reset();1163 1164 if (m_comMachine.GetState() == KMachineState_Running) 1164 1165 { … … 1167 1168 start(); 1168 1169 } 1170 else if (m_comMachine.GetState() == KMachineState_Paused) 1171 { 1172 /* If we are already active then stop: */ 1173 if (!m_comSession.isNull() && m_pTimer && m_pTimer->isActive()) 1174 m_pTimer->stop(); 1175 } 1176 else 1177 reset(); 1169 1178 } 1170 1179 … … 1211 1220 { 1212 1221 if (!m_comSession.isNull()) 1222 { 1213 1223 m_comSession.UnlockMachine(); 1224 m_comSession.detach(); 1225 } 1214 1226 } 1215 1227 … … 1540 1552 resetVMExitInfoLabel(); 1541 1553 update(); 1554 sltClearCOMData(); 1542 1555 } 1543 1556
Note:
See TracChangeset
for help on using the changeset viewer.