VirtualBox

Changeset 50849 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 24, 2014 10:32:10 AM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Fix for USB storage controller, missed one place to update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp

    r50041 r50849  
    220220    list[6] = QApplication::translate("VBoxGlobal", "SAS Port %1", "StorageSlot");
    221221    list[7] = QApplication::translate("VBoxGlobal", "Floppy Device %1", "StorageSlot");
     222    list[8] = QApplication::translate("VBoxGlobal", "USB Port %1", "StorageSlot");
    222223    int index = -1;
    223224    QRegExp regExp;
     
    315316            LONG iDevice = regExp.cap(1).toInt();
    316317            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)
    317334            {
    318335                AssertMsgFailed(("No storage slot for text='%s'", strStorageSlot.toAscii().constData()));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette