Changeset 102420 in vbox
- Timestamp:
- Dec 1, 2023 2:02:28 PM (12 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneMachine.cpp
r99218 r102420 53 53 : QWidget(pParent) 54 54 , m_pActionPool(pActionPool) 55 , m_pItem(0)56 55 , m_pLayout(0) 57 56 , m_pPaneError(0) … … 294 293 } 295 294 296 void UIToolPaneMachine::setCurrentItem(UIVirtualMachineItem *pItem)297 {298 if (m_pItem == pItem)299 return;300 301 /* Remember new item: */302 m_pItem = pItem;303 }304 305 295 void UIToolPaneMachine::setItems(const QList<UIVirtualMachineItem*> &items) 306 296 { -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIToolPaneMachine.h
r99218 r102420 100 100 void setErrorDetails(const QString &strDetails); 101 101 102 /** Defines current machine @a pItem. */103 void setCurrentItem(UIVirtualMachineItem *pItem);104 105 102 /** Defines the machine @a items. */ 106 103 void setItems(const QList<UIVirtualMachineItem*> &items); … … 130 127 UIActionPool *m_pActionPool; 131 128 132 /** Holds current machine item reference. */133 UIVirtualMachineItem *m_pItem;134 135 129 /** Holds the stacked-layout instance. */ 136 130 QStackedLayout *m_pLayout; -
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r102322 r102420 1171 1171 const bool fCurrentItemIsOk = pItem && pItem->accessible(); 1172 1172 1173 /* Propagate current item anyway: */1174 m_pPaneToolsMachine->setCurrentItem(pItem);1175 1176 1173 /* If current item is Ok: */ 1177 1174 if (fCurrentItemIsOk)
Note:
See TracChangeset
for help on using the changeset viewer.