VirtualBox

Changeset 29896 in vbox for trunk/src


Ignore:
Timestamp:
May 31, 2010 11:48:43 AM (15 years ago)
Author:
vboxsync
Message:

FE/Qt: VM Settings / HD Page: bug fix in controllers enumeration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsHD.cpp

    r29668 r29896  
    27052705            bool isConverted = false;
    27062706            int number = stringNumber.toInt (&isConverted);
    2707             if (isConverted && number > maxNumber)
    2708                 maxNumber = number;
     2707            maxNumber = isConverted && (number > maxNumber) ? number : 1;
    27092708        }
    27102709    }
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