- Timestamp:
- Apr 25, 2019 10:07:25 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r78290 r78292 115 115 * 2. or attach a new (empty) one. 116 116 * Usually we are assigning extra-data values through UIExtraDataManager, 117 * but in that special case VM was not registered yet, so UIExtraDataManager is unaware of it .*/117 * but in that special case VM was not registered yet, so UIExtraDataManager is unaware of it: */ 118 118 if (field("virtualDiskId").toString().isNull() || !field("virtualDisk").value<CMedium>().isNull()) 119 119 m_machine.SetExtraData(GUI_FirstRun, "yes"); 120 120 } 121 121 122 #if 1123 /* Configure the newly created vm here in GUI by several calls to API .*/122 #if 0 123 /* Configure the newly created vm here in GUI by several calls to API: */ 124 124 configureVM(strTypeId, type); 125 125 #else 126 /* The newer and less tested way of configuring vms .*/126 /* The newer and less tested way of configuring vms: */ 127 127 m_machine.ApplyDefaults(QString()); 128 /* Check (and correct if need be) RAM size. IMachine::applyDefaults may have overwritten the user setting. */ 129 if (m_machine.GetMemorySize() != field("ram").toUInt()) 130 m_machine.SetMemorySize(field("ram").toUInt()); 128 /* correct the RAM size. IMachine::applyDefaults may have overwritten the user setting: */ 129 m_machine.SetMemorySize(field("ram").toUInt()); 130 /* Correct the VRAM size since API does not take fullscreen memory requirements into account: */ 131 m_machine.SetVRAMSize(qMax(m_machine.GetVRAMSize(), (ULONG)(VBoxGlobal::requiredVideoMemory(strTypeId) / _1M))); 131 132 #endif 132 133 … … 170 171 if (!usbDeviceFilters.isNull() && comGuestType.GetRecommendedUSB3() && m_machine.GetUSBProxyAvailable()) 171 172 { 172 /* USB 3.0 is only available if the proper ExtPack is installed .*/173 /* USB 3.0 is only available if the proper ExtPack is installed: */ 173 174 CExtPackManager manager = vboxGlobal().virtualBox().GetExtensionPackManager(); 174 175 if (manager.IsExtPackUsable(GUI_ExtPackName))
Note:
See TracChangeset
for help on using the changeset viewer.