VirtualBox

Changeset 76001 in vbox for trunk/src


Ignore:
Timestamp:
Dec 6, 2018 8:02:41 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9241: Calm assertion on global item trigger.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserHandlerKeyboard.cpp

    r73600 r76001  
    316316        case Qt::Key_Enter:
    317317        {
    318             /* Activate item: */
    319             model()->activateMachineItem();
    320             /* And filter out that event: */
    321             return true;
     318            /* If this item is of group or machine type: */
     319            if (   model()->focusItem()->type() == UIChooserItemType_Group
     320                || model()->focusItem()->type() == UIChooserItemType_Machine)
     321            {
     322                /* Activate item: */
     323                model()->activateMachineItem();
     324                /* And filter out that event: */
     325                return true;
     326            }
     327            /* Pass event to other items: */
     328            return false;
    322329        }
    323330        case Qt::Key_Space:
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