VirtualBox

Changeset 4582 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 6, 2007 3:50:23 PM (17 years ago)
Author:
vboxsync
Message:

Sergey: change License file format to License-n.n.html

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r4572 r4582  
    15911591    QDir docDir (path);
    15921592    docDir.setFilter (QDir::Files);
    1593     docDir.setNameFilter ("License*-*.html");
     1593    docDir.setNameFilter ("License-*.html");
    15941594
    15951595    /* get the license files list and search for the latest license */
     
    15981598    for (uint index = 0; index < filesList.count(); ++ index)
    15991599    {
    1600         QRegExp regExp ("License([\\d]+-[\\d]+).html");
     1600        QRegExp regExp ("License-([\\d\\.]+).html");
    16011601        regExp.search (filesList [index]);
    16021602        QString version = regExp.cap (1);
    1603         version = version.replace ("-", ".");
    16041603        if (maxVersionNumber < version.toDouble())
    16051604            maxVersionNumber = version.toDouble();
     
    16131612    /* compose the latest license file full path */
    16141613    QString latestVersion = QString::number (maxVersionNumber);
    1615     latestVersion = latestVersion.replace (".", "-");
    16161614    QString latestFilePath = docDir.absFilePath (
    1617         QString ("License%1.html").arg (latestVersion));
     1615        QString ("License-%1.html").arg (latestVersion));
    16181616
    16191617    /* check for the agreed license version */
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