Changeset 87899 in vbox
- Timestamp:
- Mar 1, 2021 4:43:03 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.h
r87885 r87899 50 50 QString m_strGuestAdditionsISOPath; 51 51 }; 52 53 enum SelectedDiskSource 54 { 55 SelectedDiskSource_Empty = 0, 56 SelectedDiskSource_New, 57 SelectedDiskSource_Existing, 58 SelectedDiskSource_Max 59 }; 60 61 Q_DECLARE_METATYPE(SelectedDiskSource); 52 62 53 63 /** New Virtual Machine wizard: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic4.cpp
r87892 r87899 32 32 #include "UIMessageCenter.h" 33 33 #include "UIWizardNewVD.h" 34 #include "UIWizardNewVM.h"35 34 #include "UIWizardNewVMPageBasic4.h" 36 37 Q_DECLARE_METATYPE(SelectedDiskSource);38 35 39 36 UIWizardNewVMPage4::UIWizardNewVMPage4() … … 76 73 /* Focus on hard disk combo: */ 77 74 m_pDiskSelector->setFocus(); 75 m_virtualDisk = uiCommon().medium(uMediumId).medium(); 78 76 } 79 77 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic4.h
r87892 r87899 27 27 /* GUI includes: */ 28 28 #include "UIWizardPage.h" 29 #include "UIWizardNewVM.h" 29 30 30 31 /* COM includes: */ … … 39 40 class UIMediaComboBox; 40 41 41 enum SelectedDiskSource42 {43 SelectedDiskSource_Empty = 0,44 SelectedDiskSource_New,45 SelectedDiskSource_Existing,46 SelectedDiskSource_Max47 };48 42 49 43 class UIWizardNewVMPage4 : public UIWizardPageBase -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic8.cpp
r87878 r87899 165 165 } 166 166 167 fResult = UIWizardNewVDPage3::checkFATSizeLimitation(fieldImp("mediumVariant").toULongLong(),168 fieldImp("mediumPath").toString(),169 fieldImp("mediumSize").toULongLong());170 if (!fResult)171 {172 msgCenter().cannotCreateHardDiskStorageInFAT(strMediumPath, this);173 return fResult;174 }175 167 176 168 177 169 startProcessing(); 178 170 179 fResult = qobject_cast<UIWizardNewVM*>(wizard())->createVirtualDisk(); 171 SelectedDiskSource enmDiskSource = field("selectedDiskSource").value<SelectedDiskSource>(); 172 if (enmDiskSource == SelectedDiskSource_New) 173 { 174 fResult = qobject_cast<UIWizardNewVM*>(wizard())->createVirtualDisk(); 175 fResult = UIWizardNewVDPage3::checkFATSizeLimitation(fieldImp("mediumVariant").toULongLong(), 176 fieldImp("mediumPath").toString(), 177 fieldImp("mediumSize").toULongLong()); 178 if (!fResult) 179 { 180 msgCenter().cannotCreateHardDiskStorageInFAT(strMediumPath, this); 181 return fResult; 182 } 183 } 180 184 fResult = qobject_cast<UIWizardNewVM*>(wizard())->createVM(); 181 185
Note:
See TracChangeset
for help on using the changeset viewer.