Changeset 4582 in vbox for trunk/src/VBox
- Timestamp:
- Sep 6, 2007 3:50:23 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r4572 r4582 1591 1591 QDir docDir (path); 1592 1592 docDir.setFilter (QDir::Files); 1593 docDir.setNameFilter ("License *-*.html");1593 docDir.setNameFilter ("License-*.html"); 1594 1594 1595 1595 /* get the license files list and search for the latest license */ … … 1598 1598 for (uint index = 0; index < filesList.count(); ++ index) 1599 1599 { 1600 QRegExp regExp ("License ([\\d]+-[\\d]+).html");1600 QRegExp regExp ("License-([\\d\\.]+).html"); 1601 1601 regExp.search (filesList [index]); 1602 1602 QString version = regExp.cap (1); 1603 version = version.replace ("-", ".");1604 1603 if (maxVersionNumber < version.toDouble()) 1605 1604 maxVersionNumber = version.toDouble(); … … 1613 1612 /* compose the latest license file full path */ 1614 1613 QString latestVersion = QString::number (maxVersionNumber); 1615 latestVersion = latestVersion.replace (".", "-");1616 1614 QString latestFilePath = docDir.absFilePath ( 1617 QString ("License %1.html").arg (latestVersion));1615 QString ("License-%1.html").arg (latestVersion)); 1618 1616 1619 1617 /* check for the agreed license version */
Note:
See TracChangeset
for help on using the changeset viewer.