Changeset 24559 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Nov 10, 2009 4:10:31 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp
r24557 r24559 2403 2403 2404 2404 /* Remount medium to the predefined port/device */ 2405 bool wasMounted = false; 2405 2406 machine.MountMedium (target.name, target.port, target.device, newId, false /* force */); 2406 if (!machine.isOk()) 2407 if (machine.isOk()) 2408 wasMounted = true; 2409 else 2407 2410 { 2408 2411 /* Ask for force remounting */ … … 2411 2414 /* Force remount medium to the predefined port/device. */ 2412 2415 machine.MountMedium (target.name, target.port, target.device, newId, true /* force */); 2413 if (!machine.isOk()) 2416 if (machine.isOk()) 2417 wasMounted = true; 2418 else 2414 2419 vboxProblem().cannotRemountMedium (this, machine, vboxGlobal().findMedium (mount ? newId : currentId), mount, false /* retry? */); 2415 2420 } 2421 } 2422 2423 /* Save medium mounted at runtime */ 2424 if (wasMounted && mIsAutoSaveMedia) 2425 { 2426 machine.SaveSettings(); 2427 if (!machine.isOk()) 2428 vboxProblem().cannotSaveMachineSettings (machine); 2416 2429 } 2417 2430 }
Note:
See TracChangeset
for help on using the changeset viewer.