VirtualBox

Changeset 63803 in vbox for trunk


Ignore:
Timestamp:
Sep 12, 2016 2:21:32 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6899: Accessibility support (step 23): Mac OS X: Selector UI: Forgot something in r110621.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/UICocoaSpecialControls.mm

    r63797 r63803  
    568568bool UICocoaSegmentedButton::isSelected(int iSegment) const
    569569{
    570     return [nativeRef() isSelectedForSegment: iSegment];
     570    /* Return whether the segment is selected if segment index inside the bounds: */
     571    if (iSegment >=0 && iSegment < count())
     572        return [nativeRef() isSelectedForSegment: iSegment];
     573
     574    /* False by default: */
     575    return false;
    571576}
    572577
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