VirtualBox

Changeset 9077 in vbox for trunk


Ignore:
Timestamp:
May 23, 2008 12:24:48 PM (17 years ago)
Author:
vboxsync
Message:

VBoxMediaComboBox: fixing order of <no hard disk> item to be always the first.

File:
1 edited

Legend:

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

    r8644 r9077  
    265265    int insertPosition = -1;
    266266    for (int i = 0; i < count(); ++ i)
    267         if (text (i).localeAwareCompare (aName) > 0)
     267        if (text (i).localeAwareCompare (aName) > 0 &&
     268            !getId (i).isNull())
    268269        {
    269270            insertPosition = i;
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