Changeset 24136 in vbox for trunk/src/VBox/Main/xml
- Timestamp:
- Oct 28, 2009 12:48:41 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 54055
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r23808 r24136 1447 1447 // defaults to 2 and is only written if != 2 1448 1448 1449 Utf8Str strUUID; 1450 if (elmHardware.getAttributeValue("uuid", strUUID)) 1451 parseUUID(hw.uuid, strUUID); 1452 else 1453 hw.uuid.clear(); 1454 1449 1455 xml::NodesLoop nl1(elmHardware); 1450 1456 const xml::ElementNode *pelmHwChild; … … 2330 2336 if (hw.strVersion != "2") 2331 2337 pelmHardware->setAttribute("version", hw.strVersion); 2338 if (!hw.uuid.isEmpty()) 2339 pelmHardware->setAttribute("uuid", makeString(hw.uuid)); 2332 2340 2333 2341 xml::ElementNode *pelmCPU = pelmHardware->createChild("CPU"); … … 2896 2904 ) 2897 2905 ) 2906 m->sv = SettingsVersion_v1_9; 2907 2908 if ( m->sv < SettingsVersion_v1_9 2909 && !hardwareMachine.uuid.isEmpty()) 2898 2910 m->sv = SettingsVersion_v1_9; 2899 2911 }
Note:
See TracChangeset
for help on using the changeset viewer.