VirtualBox

Changeset 13590 in vbox


Ignore:
Timestamp:
Oct 27, 2008 5:29:15 PM (16 years ago)
Author:
vboxsync
Message:

Main/SettingsConverter: Take defaultVDIFolder value for defaultHardDiskFolder if it differs from the default 'VDI'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/SettingsConverter.xsl

    r13580 r13590  
    571571              mode="v1.4">
    572572  <SystemProperties>
    573     <!-- note: we don't use the @defaultVDIFolder value for @defaultHardDiskFolder
    574          since we want to let VBoxSVC set the default value -->
    575573    <xsl:apply-templates select="@*[not(name()='defaultVDIFolder')]|node()" mode="v1.4"/>
     574    <!-- use the @defaultVDIFolder value for @defaultHardDiskFolder only when it
     575         differs from the default (VDI) and otherwise simply delete it to let
     576         VBoxSVC set the correct new default value -->
     577    <xsl:if test="not(translate(@defaultVDIFolder,'vdi','VDI')='VDI')">
     578      <xsl:attribute name="defaultHardDiskFolder">
     579        <xsl:value-of select="@defaultVDIFolder"/>
     580      </xsl:attribute>
     581    </xsl:if>
    576582  </SystemProperties>
    577583</xsl:template>
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