Changeset 31218 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 29, 2010 3:07:48 PM (14 years ago)
- Location:
- trunk/src/VBox/Frontends
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp
r31070 r31218 160 160 { 161 161 SafeArray<BSTR> abstrFiles; 162 CHECK_ERROR(machine, Unregister(f alse /* fDetachMedia*/,162 CHECK_ERROR(machine, Unregister(fDelete /* fAutoCleanup */, 163 163 ComSafeArrayAsOutParam(abstrFiles))); 164 if (SUCCEEDED(rc) && fDelete) 165 CHECK_ERROR(machine, Delete()); 164 if (SUCCEEDED(rc)) 165 { 166 for (size_t u = 0; 167 u < abstrFiles.size(); 168 ++u) 169 { 170 Utf8Str strFile(abstrFiles[u]); 171 if (fDelete) 172 { 173 RTPrintf("Deleting '%s'\n", strFile.c_str()); 174 RTFileDelete(strFile.c_str()); 175 } 176 else 177 RTPrintf("File '%s' is now obsolete and can be deleted\n", strFile.c_str()); 178 } 179 180 if (fDelete) 181 { 182 CHECK_ERROR(machine, Delete()); 183 } 184 } 166 185 } 167 186 return SUCCEEDED(rc) ? 0 : 1; … … 423 442 ComPtr<IConsole> console; 424 443 CHECK_ERROR_BREAK(a->session, COMGETTER(Console)(console.asOutParam())); 425 CHECK_ERROR_BREAK(console, ForgetSavedState( true));444 CHECK_ERROR_BREAK(console, ForgetSavedState()); 426 445 } while (0); 427 446 CHECK_ERROR_BREAK(a->session, UnlockMachine()); -
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r31070 r31218 1652 1652 if (machineState == MachineState_Saved) 1653 1653 { 1654 CHECK_ERROR(gConsole, ForgetSavedState( true));1654 CHECK_ERROR(gConsole, ForgetSavedState()); 1655 1655 } 1656 1656 /* -
trunk/src/VBox/Frontends/VirtualBox/src/selector/VBoxSelectorWnd.cpp
r31070 r31218 805 805 806 806 CConsole console = session.GetConsole(); 807 console.ForgetSavedState( true);807 console.ForgetSavedState(); 808 808 if (!console.isOk()) 809 809 vboxProblem().cannotDiscardSavedState (console);
Note:
See TracChangeset
for help on using the changeset viewer.