VirtualBox

Changeset 38343 in vbox


Ignore:
Timestamp:
Aug 8, 2011 10:11:12 AM (13 years ago)
Author:
vboxsync
Message:

FE/Qt4: fix exporting of additional infos

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIExportApplianceWzd.cpp

    r38311 r38343  
    454454        m_pFileSelector->setPath(strName);
    455455    }
    456     AssertMsg(!field("applianceWidget").value<ExportAppliancePointer>().isNull(),
    457               ("Appliance Widget Pointer is not set!\n"));
    458     field("applianceWidget").value<ExportAppliancePointer>()->prepareExport();
    459456}
    460457
     
    490487    /* Register 'applianceWidget' field! */
    491488    registerField("applianceWidget", this, "applianceWidget");
    492     m_pApplianceWidget = m_pSettingsCnt;
    493489}
    494490
     
    527523{
    528524    CVirtualBox vbox = vboxGlobal().virtualBox();
    529     CAppliance *appliance = m_pSettingsCnt->init();
     525    CAppliance *appliance = m_pApplianceWidget->init();
    530526    bool fResult = appliance->isOk();
    531527    if (fResult)
     
    560556        }
    561557        /* Make sure the settings widget get the new descriptions */
    562         m_pSettingsCnt->populate();
     558        m_pApplianceWidget->populate();
    563559    }
    564560    if (!fResult)
     
    569565bool UIExportApplianceWzdPage4::exportAppliance()
    570566{
    571     AssertMsg(!field("applianceWidget").value<ExportAppliancePointer>().isNull(),
    572               ("Appliance Widget Pointer is not set!\n"));
    573     CAppliance *appliance = field("applianceWidget").value<ExportAppliancePointer>()->appliance();
     567    /* Fetch all settings from the appliance editor. */
     568    m_pApplianceWidget->prepareExport();
     569    /* Get the appliance. */
     570    CAppliance *appliance = m_pApplianceWidget->appliance();
    574571    /* We need to know every filename which will be created, so that we can
    575572     * ask the user for confirmation of overwriting. For that we iterating
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIExportApplianceWzd.h

    r33702 r38343  
    193193    ExportAppliancePointer applianceWidget() const { return m_pApplianceWidget; }
    194194    void setApplianceWidget(const ExportAppliancePointer &pApplianceWidget) { m_pApplianceWidget = pApplianceWidget; }
    195     ExportAppliancePointer m_pApplianceWidget;
    196195};
    197196
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIExportApplianceWzdPage4.ui

    r33417 r38343  
    4545   </item>
    4646   <item>
    47     <widget class="VBoxExportApplianceWgt" name="m_pSettingsCnt" native="true">
     47    <widget class="VBoxExportApplianceWgt" name="m_pApplianceWidget" native="true">
    4848     <property name="sizePolicy">
    4949      <sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
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