Changeset 50849 in vbox for trunk/src/VBox
- Timestamp:
- Mar 24, 2014 10:32:10 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp
r50041 r50849 220 220 list[6] = QApplication::translate("VBoxGlobal", "SAS Port %1", "StorageSlot"); 221 221 list[7] = QApplication::translate("VBoxGlobal", "Floppy Device %1", "StorageSlot"); 222 list[8] = QApplication::translate("VBoxGlobal", "USB Port %1", "StorageSlot"); 222 223 int index = -1; 223 224 QRegExp regExp; … … 315 316 LONG iDevice = regExp.cap(1).toInt(); 316 317 if (iDevice < 0 || iDevice > iMaxDevice) 318 { 319 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toAscii().constData())); 320 break; 321 } 322 result.bus = bus; 323 result.port = iPort; 324 result.device = iDevice; 325 break; 326 } 327 case 8: 328 { 329 KStorageBus bus = KStorageBus_USB; 330 int iMaxPort = vboxGlobal().virtualBox().GetSystemProperties().GetMaxPortCountForStorageBus(bus); 331 LONG iPort = regExp.cap(1).toInt(); 332 LONG iDevice = 0; 333 if (iPort < 0 || iPort > iMaxPort) 317 334 { 318 335 AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toAscii().constData()));
Note:
See TracChangeset
for help on using the changeset viewer.