- Timestamp:
- Jun 3, 2010 11:50:39 AM (15 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImplImport.cpp
r29981 r30008 1194 1194 stack.strAudioAdapter = vsdeAudioAdapter.front()->strVboxCurrent; 1195 1195 1196 // for the description of the new machine, always use the OVF entry, the user may have changed it in the import config 1197 std::list<VirtualSystemDescriptionEntry*> vsdeDescription = vsdescThis->findByType(VirtualSystemDescriptionType_Description); 1198 if (vsdeDescription.size()) 1199 stack.strDescription = vsdeDescription.front()->strVboxCurrent; 1200 1196 1201 // import vbox:machine or OVF now 1197 1202 if (vsdescThis->m->pConfig) … … 1202 1207 importMachineGeneric(vsysThis, vsdescThis, pNewMachine, stack); 1203 1208 1204 // for the description of the new machine, always use the OVF entry, the user may have changed it in the import config1205 std::list<VirtualSystemDescriptionEntry*> vsdeDescription = vsdescThis->findByType(VirtualSystemDescriptionType_Description);1206 if (vsdeDescription.size())1207 {1208 const Utf8Str &strDescription = vsdeDescription.front()->strVboxCurrent;1209 rc = pNewMachine->COMSETTER(Description)(Bstr(strDescription));1210 if (FAILED(rc)) throw rc;1211 }1212 1209 } // for (it = pAppliance->m->llVirtualSystems.begin() ... 1213 1210 } … … 1454 1451 1455 1452 // set the description 1456 std::list<VirtualSystemDescriptionEntry*> vsdeDescription = vsdescThis->findByType(VirtualSystemDescriptionType_Description); 1457 if (vsdeDescription.size()) 1458 { 1459 const Utf8Str &strDescription = vsdeDescription.front()->strVboxCurrent; 1460 rc = pNewMachine->COMSETTER(Description)(Bstr(strDescription)); 1453 if (!stack.strDescription.isEmpty()) 1454 { 1455 rc = pNewMachine->COMSETTER(Description)(Bstr(stack.strDescription)); 1461 1456 if (FAILED(rc)) throw rc; 1462 1457 } … … 2006 2001 */ 2007 2002 2008 // std::list<VirtualSystemDescriptionEntry*> llVSDEs;2003 config.strDescription = stack.strDescription; 2009 2004 2010 2005 config.hardwareMachine.cCPUs = stack.cCPUs; -
trunk/src/VBox/Main/include/ApplianceImplPrivate.h
r29925 r30008 147 147 Utf8Str strNameVBox; // VM name 148 148 Utf8Str strOsTypeVBox; // VirtualBox guest OS type as string 149 Utf8Str strDescription; 149 150 uint32_t cCPUs; // CPU count 150 151 bool fForceHWVirt; // if true, we force enabling hardware virtualization
Note:
See TracChangeset
for help on using the changeset viewer.