Changeset 29334 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 11, 2010 10:29:44 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r29214 r29334 1472 1472 case KStorageBus_SATA: 1473 1473 case KStorageBus_SCSI: 1474 case KStorageBus_SAS: 1474 1475 case KStorageBus_Floppy: 1475 case KStorageBus_SAS:1476 1476 break; 1477 1477 … … 1508 1508 break; 1509 1509 } 1510 case KStorageBus_SAS: 1511 { 1512 /* TODO: change this index to 6 after 3.2 */ 1513 result = mSlotTemplates [5].arg (aSlot.port); 1514 break; 1515 } 1510 1516 case KStorageBus_Floppy: 1511 1517 { 1512 result = mSlotTemplates [6].arg (aSlot.device); 1513 break; 1514 } 1515 case KStorageBus_SAS: 1516 { 1517 result = mSlotTemplates [5].arg (aSlot.port); 1518 result = mSlotTemplates [7].arg (aSlot.device); 1518 1519 break; 1519 1520 } … … 1578 1579 } 1579 1580 case 6: 1581 { 1582 result.bus = KStorageBus_SAS; 1583 int maxPort = virtualBox().GetSystemProperties().GetMaxPortCountForStorageBus (result.bus); 1584 result.port = regExp.cap (1).toInt(); 1585 if (result.port < 0 || result.port > maxPort) 1586 AssertMsgFailed (("Invalid port %d\n", result.port)); 1587 break; 1588 } 1589 case 7: 1580 1590 { 1581 1591 result.bus = KStorageBus_Floppy; … … 3080 3090 mSlotTemplates [4] = tr ("SATA Port %1", "New Storage UI : Slot Name"); 3081 3091 mSlotTemplates [5] = tr ("SCSI Port %1", "New Storage UI : Slot Name"); 3082 mSlotTemplates [6] = tr ("Floppy Device %1", "New Storage UI : Slot Name"); 3092 mSlotTemplates [6] = tr ("SAS Port %1", "New Storage UI : Slot Name"); 3093 mSlotTemplates [7] = tr ("Floppy Device %1", "New Storage UI : Slot Name"); 3083 3094 3084 3095 mDiskTypes [KMediumType_Normal] = tr ("Normal", "DiskType");
Note:
See TracChangeset
for help on using the changeset viewer.