VirtualBox

Changeset 57954 in vbox for trunk


Ignore:
Timestamp:
Sep 29, 2015 9:40:22 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: Mac OS X: Logic fix for r102930.

File:
1 edited

Legend:

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

    r57953 r57954  
    336336        const int iRelease = QString(info.release).section('.', 0, 0).toInt();
    337337
    338         /* Return release if determined, return 'Old' if version less than 'New', return 'New' otherwise: */
    339         return release.value(iRelease, iRelease < MacOSXRelease_New ? MacOSXRelease_Old : MacOSXRelease_New);
     338        /* Return release if determined, return 'New' if version more recent than latest, return 'Old' otherwise: */
     339        return release.value(iRelease, iRelease > release.keys().last() ? MacOSXRelease_New : MacOSXRelease_Old);
    340340    }
    341341    /* Return 'Old' by default: */
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