VirtualBox

Ignore:
Timestamp:
Jun 5, 2019 11:50:57 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9484: Export Appliance wizard: 3rd page: A bit of cleanup.

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  
    4242void UIWizardExportAppPage3::refreshApplianceSettingsWidget()
    4343{
    44     /* Refresh settings widget: */
    45     CVirtualBox comVBox = vboxGlobal().virtualBox();
     44    /* Acquire appliance: */
    4645    CAppliance *pAppliance = m_pApplianceWidget->init();
    4746    if (pAppliance->isOk())
    4847    {
    49         /* Iterate over all the selected machine ids: */
    50         QList<QUuid> uuids = fieldImp("machineIDs").value<QList<QUuid> >();
    51         foreach (const QUuid &uuid, 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)
    5251        {
    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());
    5555            if (comVBox.isOk() && comMachine.isNotNull())
    5656            {
     
    109109            }
    110110            else
    111                 return msgCenter().cannotFindMachineById(comVBox, uuid);
     111                return msgCenter().cannotFindMachineById(comVBox, uMachineId);
    112112        }
    113113        /* Make sure the settings widget get the new descriptions: */
     
    148148    /* Register classes: */
    149149    qRegisterMetaType<ExportAppliancePointer>();
    150 
    151150    /* Register fields: */
    152151    registerField("applianceWidget", this, "applianceWidget");
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.h

    r76581 r78991  
    5353
    5454    /** Holds the appliance widget reference. */
    55     UIApplianceExportEditorWidget *m_pApplianceWidget;
     55    ExportAppliancePointer  m_pApplianceWidget;
    5656};
    5757
Note: See TracChangeset for help on using the changeset viewer.

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