Changeset 86769 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 30, 2020 12:27:58 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp
r86734 r86769 1007 1007 if (pItem->itemType() == UIVirtualMachineItemType_Local) 1008 1008 m_pPaneToolsMachine->setMachine(pItem->toLocal()->machine()); 1009 /* Update current cloud machine state: */1010 if (pItem->itemType() == UIVirtualMachineItemType_CloudReal)1011 pItem->toCloud()->updateInfoAsync(false /* delayed? */);1012 1009 } 1013 1010 else -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemMachine.cpp
r86742 r86769 31 31 #include "UIIconPool.h" 32 32 #include "UIVirtualBoxManager.h" 33 #include "UIVirtualMachineItemCloud.h" 33 34 #include "UIVirtualMachineItemLocal.h" 34 35 … … 221 222 } 222 223 224 void UIChooserItemMachine::setSelected(bool fSelected) 225 { 226 /* Call to base-class: */ 227 UIChooserItem::setSelected(fSelected); 228 229 /* Special treatment for real cloud items: */ 230 if (cacheType() == UIVirtualMachineItemType_CloudReal) 231 { 232 UIVirtualMachineItemCloud *pCloudMachineItem = cache()->toCloud(); 233 AssertPtrReturnVoid(pCloudMachineItem); 234 if (fSelected && pCloudMachineItem->accessible()) 235 pCloudMachineItem->updateInfoAsync(false /* delayed? */); 236 else 237 pCloudMachineItem->waitForAsyncInfoUpdateFinished(); 238 } 239 } 240 223 241 void UIChooserItemMachine::startEditing() 224 242 { -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemMachine.h
r84625 r86769 105 105 /** Returns RTTI item type. */ 106 106 virtual int type() const /* override */ { return Type; } 107 108 /** Defines item as @a fSelected. */ 109 virtual void setSelected(bool fSelected) /* override */; 107 110 108 111 /** Starts item editing. */
Note:
See TracChangeset
for help on using the changeset viewer.