VirtualBox

Changeset 95644 in vbox


Ignore:
Timestamp:
Jul 14, 2022 9:57:58 AM (2 years ago)
Author:
vboxsync
Message:

Recording: Omit branch if we still have the default settings (i.e. nothing to save, saves a bit of space). bugref:9286

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r95641 r95644  
    79987998void MachineConfigFile::buildRecordingXML(xml::ElementNode &elmParent, const RecordingSettings &recording)
    79997999{
     8000    if (recording.areDefaultSettings()) /* Omit branch if we still have the default settings (i.e. nothing to save). */
     8001        return;
     8002
    80008003    /* Note: Since settings 1.19 the recording settings have a dedicated XML branch outside of Hardware. */
    80018004    if (m->sv >= SettingsVersion_v1_19 /* VBox >= 7.0 */)
     
    80558058    }
    80568059    else if (   m->sv >= SettingsVersion_v1_14
    8057              && m->sv <  SettingsVersion_v1_19 /* VBox < 7.0 */
    8058              && !recording.areDefaultSettings())
     8060             && m->sv <  SettingsVersion_v1_19 /* VBox < 7.0 */)
    80598061    {
    80608062        /* Note: elmParent is Hardware or Snapshot. */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette