VirtualBox

Changeset 70725 in vbox


Ignore:
Timestamp:
Jan 24, 2018 1:06:50 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9104: A bit of rework for UIDownloaderUserManual; Make it use https.

File:
1 edited

Legend:

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

    r69500 r70725  
    5858        m_spInstance = this;
    5959
     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
    6082    /* Compose User Manual filename: */
    6183    QString strUserManualFullFileName = vboxGlobal().helpFile();
     
    6385
    6486    /* 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);
    6791
    6892    /* Set target: */
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