Changeset 32334 in vbox
- Timestamp:
- Sep 9, 2010 9:33:10 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxProblemReporter.cpp
r32296 r32334 1086 1086 const QVector<CMediumAttachment> &mediums = machine.GetMediumAttachments(); 1087 1087 for (int i=0; i < mediums.size(); ++i) 1088 if (mediums.at(i).GetType() == KDeviceType_HardDisk) 1089 ++cDisks; 1088 { 1089 const CMediumAttachment &m = mediums.at(i); 1090 /* Check if the medium is a harddisk */ 1091 if (m.GetType() == KDeviceType_HardDisk) 1092 { 1093 /* Check if the disk isn't shared. If the disk is shared, it 1094 * will be *never* deleted. */ 1095 QVector <QString> ids = m.GetMedium().GetMachineIds(); 1096 if (ids.size() == 1) 1097 ++cDisks; 1098 } 1099 } 1090 1100 const QString strDeleteBtn = tr("Delete", "machine"); 1091 1101 const QString strDeleteAllBtn = tr("Delete All", "machine");
Note:
See TracChangeset
for help on using the changeset viewer.