Changeset 55255 in vbox for trunk/src/VBox/Main/src-server/SnapshotImpl.cpp
- Timestamp:
- Apr 14, 2015 3:45:46 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 99568
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/SnapshotImpl.cpp
r55233 r55255 2173 2173 i_setMachineState(MachineState_PoweredOff); 2174 2174 2175 i_updateMachineStateOnClient();2176 2175 stateRestored = true; 2177 2176 … … 2265 2264 /* restore the machine state */ 2266 2265 i_setMachineState(task.m_machineStateBackup); 2267 i_updateMachineStateOnClient();2268 2266 } 2269 2267 } … … 2275 2273 2276 2274 if (SUCCEEDED(rc)) 2277 mParent->i_onSnapshot Deleted(mData->mUuid, Guid());2275 mParent->i_onSnapshotRestored(mData->mUuid, Guid()); 2278 2276 2279 2277 LogFlowThisFunc(("Done restoring snapshot (rc=%08X)\n", rc)); … … 2488 2486 // set the proper machine state here now (note: after creating a Task instance) 2489 2487 if (mData->mMachineState == MachineState_Running) 2488 { 2490 2489 i_setMachineState(MachineState_DeletingSnapshotOnline); 2490 i_updateMachineStateOnClient(); 2491 } 2491 2492 else if (mData->mMachineState == MachineState_Paused) 2493 { 2492 2494 i_setMachineState(MachineState_DeletingSnapshotPaused); 2495 i_updateMachineStateOnClient(); 2496 } 2493 2497 else 2494 2498 i_setMachineState(MachineState_DeletingSnapshot); 2495 i_updateMachineStateOnClient();2496 2499 2497 2500 /* return the progress to the caller */ … … 3166 3169 // task was started 3167 3170 i_setMachineState(task.m_machineStateBackup); 3168 i_updateMachineStateOnClient(); 3171 if (Global::IsOnline(mData->mMachineState)) 3172 i_updateMachineStateOnClient(); 3169 3173 3170 3174 mParent->i_saveModifiedRegistries();
Note:
See TracChangeset
for help on using the changeset viewer.