Changeset 34791 in vbox for trunk/src/VBox
- Timestamp:
- Dec 7, 2010 3:01:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxMediaManagerDlg.cpp
r34736 r34791 1077 1077 if (deleteStorage) 1078 1078 { 1079 bool success = false;1080 1081 1079 CProgress progress = hardDisk.DeleteStorage(); 1082 1080 if (hardDisk.isOk()) 1083 1081 { 1084 vboxProblem().showModalProgressDialog (progress, windowTitle(), ":/progress_delete_90px.png", this, true); 1085 if (progress.isOk() && progress.GetResultCode() == S_OK) 1086 success = true; 1082 vboxProblem().showModalProgressDialog(progress, windowTitle(), ":/progress_delete_90px.png", this, true); 1083 if (!(progress.isOk() && progress.GetResultCode() == S_OK)) 1084 { 1085 vboxProblem().cannotDeleteHardDiskStorage(this, hardDisk, progress); 1086 return; 1087 } 1087 1088 } 1088 1089 if (success)1090 vboxGlobal().removeMedium (VBoxDefs::MediumType_HardDisk, id);1091 else1092 vboxProblem().cannotDeleteHardDiskStorage (this, hardDisk, progress);1093 1094 /* We don't want to close the hard disk because it was1095 * implicitly closed and removed from the list of known media1096 * on storage deletion */1097 return;1098 1089 } 1099 1090
Note:
See TracChangeset
for help on using the changeset viewer.