Changeset 38343 in vbox
- Timestamp:
- Aug 8, 2011 10:11:12 AM (13 years ago)
- 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 454 454 m_pFileSelector->setPath(strName); 455 455 } 456 AssertMsg(!field("applianceWidget").value<ExportAppliancePointer>().isNull(),457 ("Appliance Widget Pointer is not set!\n"));458 field("applianceWidget").value<ExportAppliancePointer>()->prepareExport();459 456 } 460 457 … … 490 487 /* Register 'applianceWidget' field! */ 491 488 registerField("applianceWidget", this, "applianceWidget"); 492 m_pApplianceWidget = m_pSettingsCnt;493 489 } 494 490 … … 527 523 { 528 524 CVirtualBox vbox = vboxGlobal().virtualBox(); 529 CAppliance *appliance = m_p SettingsCnt->init();525 CAppliance *appliance = m_pApplianceWidget->init(); 530 526 bool fResult = appliance->isOk(); 531 527 if (fResult) … … 560 556 } 561 557 /* Make sure the settings widget get the new descriptions */ 562 m_p SettingsCnt->populate();558 m_pApplianceWidget->populate(); 563 559 } 564 560 if (!fResult) … … 569 565 bool UIExportApplianceWzdPage4::exportAppliance() 570 566 { 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(); 574 571 /* We need to know every filename which will be created, so that we can 575 572 * ask the user for confirmation of overwriting. For that we iterating -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIExportApplianceWzd.h
r33702 r38343 193 193 ExportAppliancePointer applianceWidget() const { return m_pApplianceWidget; } 194 194 void setApplianceWidget(const ExportAppliancePointer &pApplianceWidget) { m_pApplianceWidget = pApplianceWidget; } 195 ExportAppliancePointer m_pApplianceWidget;196 195 }; 197 196 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIExportApplianceWzdPage4.ui
r33417 r38343 45 45 </item> 46 46 <item> 47 <widget class="VBoxExportApplianceWgt" name="m_p SettingsCnt" native="true">47 <widget class="VBoxExportApplianceWgt" name="m_pApplianceWidget" native="true"> 48 48 <property name="sizePolicy"> 49 49 <sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
Note:
See TracChangeset
for help on using the changeset viewer.