VirtualBox

Changeset 75144 in vbox for trunk/src


Ignore:
Timestamp:
Oct 29, 2018 1:10:42 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126222
Message:

FE/Qt: bugref:9241: VirtualBox Manager: Forgot that r126142 requires a bit of caching work from UIToolPaneMachine side.

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

Legend:

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

    r75093 r75144  
    124124                    connect(this, &UIToolPaneMachine::sigToggleFinished, m_pPaneDetails, &UIDetails::sigToggleFinished);
    125125                    connect(m_pPaneDetails, &UIDetails::sigLinkClicked,  this, &UIToolPaneMachine::sigLinkClicked);
     126                    m_pPaneDetails->setItems(m_items);
    126127
    127128                    /* Add into layout: */
     
    146147                    connect(m_pPaneSnapshots, &UISnapshotPane::sigCurrentItemChange,
    147148                            this, &UIToolPaneMachine::sigCurrentSnapshotItemChange);
     149                    m_pPaneSnapshots->setMachine(m_comMachine);
    148150
    149151                    /* Add into layout: */
     
    166168                    /* Configure pane: */
    167169                    m_pPaneLogViewer->setProperty("ToolType", QVariant::fromValue(UIToolType_Logs));
     170                    m_pPaneLogViewer->setMachine(m_comMachine);
    168171
    169172                    /* Add into layout: */
     
    224227void UIToolPaneMachine::setItems(const QList<UIVirtualMachineItem*> &items)
    225228{
     229    /* Cache passed value: */
     230    m_items = items;
     231
    226232    /* Update details pane is it is open: */
    227233    if (isToolOpened(UIToolType_Details))
    228234    {
    229235        AssertPtrReturnVoid(m_pPaneDetails);
    230         m_pPaneDetails->setItems(items);
     236        m_pPaneDetails->setItems(m_items);
    231237    }
    232238}
     
    234240void UIToolPaneMachine::setMachine(const CMachine &comMachine)
    235241{
     242    /* Cache passed value: */
     243    m_comMachine = comMachine;
     244
    236245    /* Update snapshots pane is it is open: */
    237246    if (isToolOpened(UIToolType_Snapshots))
    238247    {
    239248        AssertPtrReturnVoid(m_pPaneSnapshots);
    240         m_pPaneSnapshots->setMachine(comMachine);
     249        m_pPaneSnapshots->setMachine(m_comMachine);
    241250    }
    242251    /* Update logviewer pane is it is open: */
     
    244253    {
    245254        AssertPtrReturnVoid(m_pPaneLogViewer);
    246         m_pPaneLogViewer->setMachine(comMachine);
     255        m_pPaneLogViewer->setMachine(m_comMachine);
    247256    }
    248257}
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneMachine.h

    r75093 r75144  
    2525#include "UIExtraDataDefs.h"
    2626
     27/* COM includes: */
     28#include "COMEnums.h"
     29#include "CMachine.h"
     30
    2731/* Forward declarations: */
    2832class QHBoxLayout;
     
    3539class UIVirtualMachineItem;
    3640class UIVMLogViewerWidget;
    37 class CMachine;
    3841
    3942
     
    113116    /** Holds the Logviewer pane instance. */
    114117    UIVMLogViewerWidget *m_pPaneLogViewer;
     118
     119    /** Holds the cache of passed items. */
     120    QList<UIVirtualMachineItem*>  m_items;
     121    /** Holds the cache of passed machine. */
     122    CMachine                      m_comMachine;
    115123};
    116124
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette