Changeset 33661 in vbox
- Timestamp:
- Nov 1, 2010 3:05:54 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 67280
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/settings.h
r33556 r33661 955 955 BuildMachineXML_WriteVboxVersionAttribute = 0x02, 956 956 BuildMachineXML_SkipRemovableMedia = 0x04, 957 BuildMachineXML_MediaRegistry = 0x08 957 BuildMachineXML_MediaRegistry = 0x08, 958 BuildMachineXML_SuppressSavedState = 0x10 958 959 }; 959 960 void buildMachineXML(xml::ElementNode &elmMachine, -
trunk/src/VBox/Main/ApplianceImplExport.cpp
r33651 r33661 1548 1548 pConfig->buildMachineXML(*pelmVBoxMachine, 1549 1549 settings::MachineConfigFile::BuildMachineXML_WriteVboxVersionAttribute 1550 | settings::MachineConfigFile::BuildMachineXML_SkipRemovableMedia, 1550 | settings::MachineConfigFile::BuildMachineXML_SkipRemovableMedia 1551 | settings::MachineConfigFile::BuildMachineXML_SuppressSavedState, 1551 1552 // but not BuildMachineXML_IncludeSnapshots nor BuildMachineXML_MediaRegistry 1552 1553 pllElementsWithUuidAttributes); -
trunk/src/VBox/Main/xml/Settings.cpp
r33621 r33661 4143 4143 * when this gets called for OVF export. 4144 4144 * 4145 * -- BuildMachineXML_SuppressSavedState: If set, the Machine/@stateFile 4146 * attribute is never set. This is also for the OVF export case because we 4147 * cannot save states with OVF. 4148 * 4145 4149 * @param elmMachine XML <Machine> element to add attributes and elements to. 4146 4150 * @param fl Flags. … … 4163 4167 elmMachine.createChild("Description")->addContent(machineUserData.strDescription); 4164 4168 elmMachine.setAttribute("OSType", machineUserData.strOsType); 4165 if (strStateFile.length()) 4169 if ( strStateFile.length() 4170 && !(fl & BuildMachineXML_SuppressSavedState) 4171 ) 4166 4172 elmMachine.setAttribute("stateFile", strStateFile); 4167 4173 if ( (fl & BuildMachineXML_IncludeSnapshots)
Note:
See TracChangeset
for help on using the changeset viewer.