Changeset 78991 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jun 5, 2019 11:50:57 AM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp
r76606 r78991 42 42 void UIWizardExportAppPage3::refreshApplianceSettingsWidget() 43 43 { 44 /* Refresh settings widget: */ 45 CVirtualBox comVBox = vboxGlobal().virtualBox(); 44 /* Acquire appliance: */ 46 45 CAppliance *pAppliance = m_pApplianceWidget->init(); 47 46 if (pAppliance->isOk()) 48 47 { 49 /* Iterate over all the selected machine ids: */50 QList<QUuid> uuids = fieldImp("machineIDs").value<QList<QUuid> >();51 foreach (const QUuid &u uid, uuids)48 /* Iterate over all the selected machine uuids: */ 49 const QList<QUuid> uuids = fieldImp("machineIDs").value<QList<QUuid> >(); 50 foreach (const QUuid &uMachineId, uuids) 52 51 { 53 /* Get the machine with the uuid: */ 54 CMachine comMachine = comVBox.FindMachine(uuid.toString()); 52 /* Get the machine with the uMachineId: */ 53 CVirtualBox comVBox = vboxGlobal().virtualBox(); 54 CMachine comMachine = comVBox.FindMachine(uMachineId.toString()); 55 55 if (comVBox.isOk() && comMachine.isNotNull()) 56 56 { … … 109 109 } 110 110 else 111 return msgCenter().cannotFindMachineById(comVBox, u uid);111 return msgCenter().cannotFindMachineById(comVBox, uMachineId); 112 112 } 113 113 /* Make sure the settings widget get the new descriptions: */ … … 148 148 /* Register classes: */ 149 149 qRegisterMetaType<ExportAppliancePointer>(); 150 151 150 /* Register fields: */ 152 151 registerField("applianceWidget", this, "applianceWidget"); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.h
r76581 r78991 53 53 54 54 /** Holds the appliance widget reference. */ 55 UIApplianceExportEditorWidget *m_pApplianceWidget;55 ExportAppliancePointer m_pApplianceWidget; 56 56 }; 57 57
Note:
See TracChangeset
for help on using the changeset viewer.