Changeset 91638 in vbox
- Timestamp:
- Oct 8, 2021 12:22:29 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 147363
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/widgets
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceEditorWidget.cpp
r91579 r91638 1849 1849 } 1850 1850 1851 void UIApplianceEditorWidget::clear() 1852 { 1853 /* Wipe model: */ 1854 delete m_pModel; 1855 m_pModel = 0; 1856 1857 /* And appliance: */ 1858 m_comAppliance = CAppliance(); 1859 } 1860 1851 1861 void UIApplianceEditorWidget::setAppliance(const CAppliance &comAppliance) 1852 1862 { -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceEditorWidget.h
r91579 r91638 295 295 UIApplianceEditorWidget(QWidget *pParent = 0); 296 296 297 /** Clears everything. */ 298 void clear(); 299 297 300 /** Defines @a comAppliance wrapper instance. */ 298 301 virtual void setAppliance(const CAppliance &comAppliance); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceExportEditorWidget.cpp
r91579 r91638 63 63 void UIApplianceExportEditorWidget::setAppliance(const CAppliance &comAppliance) 64 64 { 65 /* Cleanup previous stuff: */ 66 clear(); 67 65 68 /* Call to base-class: */ 66 69 UIApplianceEditorWidget::setAppliance(comAppliance); 67 68 /* Cleanup previous stuff: */69 if (m_pModel)70 delete m_pModel;71 70 72 71 /* Prepare model: */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceImportEditorWidget.cpp
r91579 r91638 50 50 void UIApplianceImportEditorWidget::setAppliance(const CAppliance &comAppliance) 51 51 { 52 /* Cleanup previous stuff: */ 53 clear(); 54 52 55 /* Call to base-class: */ 53 56 UIApplianceEditorWidget::setAppliance(comAppliance); 54 55 /* Cleanup previous stuff: */56 if (m_pModel)57 delete m_pModel;58 57 59 58 /* Prepare model: */
Note:
See TracChangeset
for help on using the changeset viewer.