VirtualBox

Changeset 93733 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Feb 14, 2022 4:21:11 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: Stop but don't reset activity monitor when a vm is paused.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/activity/vmactivity/UIVMActivityMonitor.cpp

    r93115 r93733  
    952952void UIVMActivityMonitor::openSession()
    953953{
     954    if (!m_comSession.isNull())
     955        return;
    954956    m_comSession = uiCommon().openSession(m_comMachine.GetId(), KLockType_Shared);
    955957    AssertReturnVoid(!m_comSession.isNull());
     
    11601162    if (m_comMachine.GetId() != uId)
    11611163        return;
    1162     reset();
    11631164    if (m_comMachine.GetState() == KMachineState_Running)
    11641165    {
     
    11671168        start();
    11681169    }
     1170    else if (m_comMachine.GetState() == KMachineState_Paused)
     1171    {
     1172        /* If we are already active then stop: */
     1173        if (!m_comSession.isNull() && m_pTimer && m_pTimer->isActive())
     1174            m_pTimer->stop();
     1175    }
     1176    else
     1177        reset();
    11691178}
    11701179
     
    12111220{
    12121221    if (!m_comSession.isNull())
     1222    {
    12131223        m_comSession.UnlockMachine();
     1224        m_comSession.detach();
     1225    }
    12141226}
    12151227
     
    15401552    resetVMExitInfoLabel();
    15411553    update();
     1554    sltClearCOMData();
    15421555}
    15431556
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