- Timestamp:
- Oct 27, 2021 1:44:20 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r92095 r92105 115 115 void UIWizardNewVM::wizardClean() 116 116 { 117 /* Try to delete the hard disk in case we have created one: */ 118 deleteVirtualDisk(); 119 /* Cleanup the machine folder: */ 117 120 UIWizardNewVMNameOSTypeCommon::cleanupMachineFolder(this, true); 118 121 } … … 135 138 { 136 139 msgCenter().cannotCreateMachine(vbox, this); 137 /* Try to delete the hard disk: */ 138 deleteVirtualDisk(); 140 wizardClean(); 139 141 return false; 140 142 } … … 166 168 if (!vbox.isOk()) 167 169 { 168 /* Try to delete the hard disk: */169 deleteVirtualDisk();170 170 msgCenter().cannotRegisterMachine(vbox, m_machine.GetName(), this); 171 wizardClean(); 171 172 return false; 172 173 } … … 466 467 void UIWizardNewVM::sltHandleWizardCancel() 467 468 { 468 UIWizardNewVMNameOSTypeCommon::cleanupMachineFolder(this, true);469 wizardClean(); 469 470 } 470 471 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMExpertPage.cpp
r92032 r92105 612 612 UIWizardNewVM *pWizard = wizardWindow<UIWizardNewVM>(); 613 613 AssertReturn(pWizard, false); 614 bool fResult = true; 614 bool fResult = UIWizardNewVMNameOSTypeCommon::createMachineFolder(m_pNameAndSystemEditor, this, wizardWindow<UIWizardNewVM>()); 615 if (!fResult) 616 return false; 615 617 616 618 if (pWizard->diskSource() == SelectedDiskSource_New)
Note:
See TracChangeset
for help on using the changeset viewer.