Changeset 70725 in vbox
- Timestamp:
- Jan 24, 2018 1:06:50 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/net/UIDownloaderUserManual.cpp
r69500 r70725 58 58 m_spInstance = this; 59 59 60 /* Get version number and adjust it for test and trunk builds, 61 * both have odd build numbers. The server only has official releases. */ 62 QString strVersion = vboxGlobal().vboxVersionStringNormalized(); 63 const QChar qchLastDigit = strVersion[strVersion.length() - 1]; 64 if ( qchLastDigit == '1' 65 || qchLastDigit == '3' 66 || qchLastDigit == '5' 67 || qchLastDigit == '7' 68 || qchLastDigit == '9') 69 { 70 if ( !strVersion.endsWith(".51") 71 && !strVersion.endsWith(".53") 72 && !strVersion.endsWith(".97") 73 && !strVersion.endsWith(".99")) 74 strVersion[strVersion.length() - 1] = qchLastDigit.toLatin1() - 1; 75 else 76 { 77 strVersion.chop(2); 78 strVersion += "6"; /* Current for 5.2.x */ 79 } 80 } 81 60 82 /* Compose User Manual filename: */ 61 83 QString strUserManualFullFileName = vboxGlobal().helpFile(); … … 63 85 64 86 /* Add sources: */ 65 addSource(QString("http://download.virtualbox.org/virtualbox/%1/").arg(vboxGlobal().vboxVersionStringNormalized()) + strUserManualShortFileName); 66 addSource(QString("http://download.virtualbox.org/virtualbox/") + strUserManualShortFileName); 87 QString strSource1 = QString("https://download.virtualbox.org/virtualbox/%1/").arg(strVersion) + strUserManualShortFileName; 88 QString strSource2 = QString("https://download.virtualbox.org/virtualbox/") + strUserManualShortFileName; 89 addSource(strSource1); 90 addSource(strSource2); 67 91 68 92 /* Set target: */
Note:
See TracChangeset
for help on using the changeset viewer.