Changeset 83882 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 21, 2020 9:46:01 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp
r83858 r83882 177 177 strProviderName, 178 178 UIChooserNodeGroupType_Provider, 179 false /* opened */); 179 shouldGroupNodeBeOpened(invisibleRoot(), 180 strProviderName)); 180 181 181 182 /* Iterate through provider's profile names: */ … … 213 214 strProfileName, 214 215 UIChooserNodeGroupType_Profile, 215 true /* opened */); 216 shouldGroupNodeBeOpened(pProviderNode, 217 strProfileName)); 216 218 /* Add fake cloud VM item: */ 217 219 new UIChooserNodeMachine(pProfileNode /* parent */, … … 492 494 493 495 /* Add real cloud VM nodes: */ 494 int iPosition = 0;495 496 foreach (const CCloudMachine &comCloudMachine, machines) 496 new UIChooserNodeMachine(pParentNode, 497 false /* favorite */, 498 iPosition++ /* position */, 499 comCloudMachine); 497 createCloudMachineNode(pParentNode, comCloudMachine); 500 498 } 501 499 else … … 883 881 new UIChooserNodeMachine(pParentNode, 884 882 false /* favorite */, 885 getDesiredNodePosition(pParentNode, UIChooserNodeType_Machine, toOldStyleUuid(comMachine.GetId())), 883 getDesiredNodePosition(pParentNode, 884 UIChooserNodeType_Machine, 885 toOldStyleUuid(comMachine.GetId())), 886 886 comMachine); 887 887 } … … 972 972 foreach (UIChooserNode *pNode, pParentGroup->nodes(UIChooserNodeType_Machine)) 973 973 if (UIChooserNodeMachine *pMachineNode = pNode->toMachineNode()) 974 if (pMachineNode->cache()->itemType() == UIVirtualMachineItem::ItemType_Local) 974 if ( pMachineNode->cache()->itemType() == UIVirtualMachineItem::ItemType_Local 975 || pMachineNode->cache()->itemType() == UIVirtualMachineItem::ItemType_CloudReal) 975 976 orders[strExtraDataKey] << QString("m=%1").arg(toOldStyleUuid(pMachineNode->cache()->id())); 976 977 }
Note:
See TracChangeset
for help on using the changeset viewer.