VirtualBox

Changeset 58286 in vbox


Ignore:
Timestamp:
Oct 16, 2015 4:47:45 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: 8026: Selector UI: Pause state synchronization in selector UI context menu when VM is paused/unpaused from VM's window menu(Machine->Pause).

File:
1 edited

Legend:

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

    r57897 r58286  
    18091809    foreach (UIVMItem *pSelectedItem, items)
    18101810        if (UIVMItem::isItemStarted(pSelectedItem))
     1811        {
    18111812            pFirstStartedAction = pSelectedItem;
    1812     /* Update the Pause/Resume action appearance: */
     1813            break;
     1814        }
     1815    /* Update the group Pause/Resume action appearance: */
    18131816    actionPool()->action(UIActionIndexST_M_Group_T_Pause)->blockSignals(true);
    18141817    actionPool()->action(UIActionIndexST_M_Group_T_Pause)->setChecked(pFirstStartedAction && UIVMItem::isItemPaused(pFirstStartedAction));
    18151818    actionPool()->action(UIActionIndexST_M_Group_T_Pause)->retranslateUi();
    18161819    actionPool()->action(UIActionIndexST_M_Group_T_Pause)->blockSignals(false);
     1820    /* Update the machine Pause/Resume action appearance: */
     1821    actionPool()->action(UIActionIndexST_M_Machine_T_Pause)->blockSignals(true);
     1822    actionPool()->action(UIActionIndexST_M_Machine_T_Pause)->setChecked(pFirstStartedAction && UIVMItem::isItemPaused(pFirstStartedAction));
     1823    actionPool()->action(UIActionIndexST_M_Machine_T_Pause)->retranslateUi();
     1824    actionPool()->action(UIActionIndexST_M_Machine_T_Pause)->blockSignals(false);
    18171825
    18181826#ifdef QT_MAC_USE_COCOA
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