Changeset 58602 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Nov 6, 2015 12:41:49 PM (9 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/UIWizardNewVMPageBasic3.cpp
r56180 r58602 40 40 41 41 UIWizardNewVMPage3::UIWizardNewVMPage3() 42 : m_fRecommendedNoDisk(false) 42 43 { 43 44 } … … 224 225 225 226 /* Prepare initial choice: */ 226 m_pDiskCreate->setFocus(); 227 m_pDiskCreate->setChecked(true); 227 if (field("type").value<CGuestOSType>().GetRecommendedHDD() != 0) 228 { 229 m_pDiskCreate->setFocus(); 230 m_pDiskCreate->setChecked(true); 231 m_fRecommendedNoDisk = false; 232 } 233 else 234 { 235 m_pDiskSkip->setFocus(); 236 m_pDiskSkip->setChecked(true); 237 m_fRecommendedNoDisk = true; 238 } 228 239 m_pDiskSelector->setCurrentIndex(0); 229 240 } … … 255 266 if (m_pDiskSkip->isChecked()) 256 267 { 257 /* Ask user about disk-less machine: */ 258 fResult = msgCenter().confirmHardDisklessMachine(thisImp()); 268 /* Ask user about disk-less machine unless that's the recommendation: */ 269 if (!m_fRecommendedNoDisk) 270 fResult = msgCenter().confirmHardDisklessMachine(thisImp()); 259 271 } 260 272 else if (m_pDiskCreate->isChecked()) -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic3.h
r55401 r58602 67 67 void ensureNewVirtualDiskDeleted(); 68 68 69 /* Input: */ 70 bool m_fRecommendedNoDisk; 71 69 72 /* Variables: */ 70 73 CMedium m_virtualDisk;
Note:
See TracChangeset
for help on using the changeset viewer.