VirtualBox

Changeset 27145 in vbox


Ignore:
Timestamp:
Mar 7, 2010 4:48:28 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: New running VM core: seamless main-menu actions availability fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp

    r27132 r27145  
    4646    /* Cleanup normal machine window: */
    4747    cleanupMachineWindows();
     48
     49    /* Cleanup actions groups: */
     50    cleanupActionGroups();
    4851}
    4952
     
    151154    UIMachineLogic::prepareActionGroups();
    152155
    153     /* Adjust window isn't allowed in seamless */
    154     actionsPool()->action(UIActionIndex_Simple_AdjustWindow)->setEnabled(false);
     156    /* Guest auto-resize isn't allowed in seamless: */
     157    actionsPool()->action(UIActionIndex_Toggle_GuestAutoresize)->setVisible(false);
     158
     159    /* Adjust-window isn't allowed in seamless: */
     160    actionsPool()->action(UIActionIndex_Simple_AdjustWindow)->setVisible(false);
     161
     162    /* Disable mouse-integration isn't allowed in seamless: */
     163    actionsPool()->action(UIActionIndex_Toggle_MouseIntegration)->setVisible(false);
    155164}
    156165
     
    289298void UIMachineLogicSeamless::cleanupActionGroups()
    290299{
    291     /* Reenable adjust window */
    292     actionsPool()->action(UIActionIndex_Simple_AdjustWindow)->setEnabled(true);
    293 }
    294 
     300    /* Reenable guest-autoresize action: */
     301    actionsPool()->action(UIActionIndex_Toggle_GuestAutoresize)->setVisible(true);
     302
     303    /* Reenable adjust-window action: */
     304    actionsPool()->action(UIActionIndex_Simple_AdjustWindow)->setVisible(true);
     305
     306    /* Reenable mouse-integration action: */
     307    actionsPool()->action(UIActionIndex_Toggle_MouseIntegration)->setVisible(true);
     308}
     309
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