VirtualBox

Ignore:
Timestamp:
May 2, 2023 10:19:01 AM (20 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10322: Runtime UI: Make sure Debug actions still active in stuck VM case as well.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
2 edited

Legend:

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

    r99526 r99561  
    399399    m_pRunningActions->setEnabled(uimachine()->isRunning());
    400400    m_pRunningOrPausedActions->setEnabled(uimachine()->isRunning() || uimachine()->isPaused());
    401     m_pRunningOrPausedOrStackedActions->setEnabled(uimachine()->isRunning() || uimachine()->isPaused() || uimachine()->isStuck());
     401    m_pRunningOrPausedOrStuckActions->setEnabled(uimachine()->isRunning() || uimachine()->isPaused() || uimachine()->isStuck());
    402402
    403403    switch (state)
     
    756756    , m_pRunningActions(0)
    757757    , m_pRunningOrPausedActions(0)
    758     , m_pRunningOrPausedOrStackedActions(0)
     758    , m_pRunningOrPausedOrStuckActions(0)
    759759    , m_pSharedClipboardActions(0)
    760760    , m_pDragAndDropActions(0)
     
    906906     * Note that only actions whose enabled state depends exclusively on the
    907907     * execution state of the VM are added to this group. */
    908     m_pRunningOrPausedOrStackedActions = new QActionGroup(this);
    909     m_pRunningOrPausedOrStackedActions->setExclusive(false);
     908    m_pRunningOrPausedOrStuckActions = new QActionGroup(this);
     909    m_pRunningOrPausedOrStuckActions->setExclusive(false);
    910910
    911911    /* Move actions into running actions group: */
     
    979979    m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndex_M_Window_S_Minimize));
    980980#endif /* VBOX_WS_MAC */
     981
     982    /* Move actions into running-n-paused-n-stuck actions group: */
    981983#ifdef VBOX_WITH_DEBUGGER_GUI
    982     m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndexRT_M_Debug));
    983     m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndexRT_M_Debug_S_ShowStatistics));
    984     m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndexRT_M_Debug_S_ShowCommandLine));
    985     m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndexRT_M_Debug_T_Logging));
    986     m_pRunningOrPausedActions->addAction(actionPool()->action(UIActionIndexRT_M_Debug_S_GuestControlConsole));
     984    m_pRunningOrPausedOrStuckActions->addAction(actionPool()->action(UIActionIndexRT_M_Debug));
     985    m_pRunningOrPausedOrStuckActions->addAction(actionPool()->action(UIActionIndexRT_M_Debug_S_ShowStatistics));
     986    m_pRunningOrPausedOrStuckActions->addAction(actionPool()->action(UIActionIndexRT_M_Debug_S_ShowCommandLine));
     987    m_pRunningOrPausedOrStuckActions->addAction(actionPool()->action(UIActionIndexRT_M_Debug_T_Logging));
     988    m_pRunningOrPausedOrStuckActions->addAction(actionPool()->action(UIActionIndexRT_M_Debug_S_GuestControlConsole));
    987989#endif /* VBOX_WITH_DEBUGGER_GUI */
    988 
    989     /* Move actions into running-n-paused-n-stucked actions group: */
    990     m_pRunningOrPausedOrStackedActions->addAction(actionPool()->action(UIActionIndexRT_M_Machine_S_PowerOff));
     990    m_pRunningOrPausedOrStuckActions->addAction(actionPool()->action(UIActionIndexRT_M_Machine_S_PowerOff));
    991991}
    992992
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h

    r99436 r99561  
    371371    QActionGroup *m_pRunningActions;
    372372    QActionGroup *m_pRunningOrPausedActions;
    373     QActionGroup *m_pRunningOrPausedOrStackedActions;
     373    QActionGroup *m_pRunningOrPausedOrStuckActions;
    374374    QActionGroup *m_pSharedClipboardActions;
    375375    QActionGroup *m_pDragAndDropActions;
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