VirtualBox

Changeset 70724 in vbox


Ignore:
Timestamp:
Jan 24, 2018 12:05:23 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120469
Message:

FE/Qt: bugref:9104: A bit of rework for UIDownloaderAdditions; Make it use https and a tiny cleanup.

File:
1 edited

Legend:

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

    r70723 r70724  
    6161        m_spInstance = this;
    6262
    63     /* Get version number and adjust it for test and trunk builds, both have
    64        odd build numbers. The server only has official releases. */
     63    /* Get version number and adjust it for test and trunk builds,
     64     * both have odd build numbers. The server only has official releases. */
    6565    QString strVersion = vboxGlobal().vboxVersionStringNormalized();
    66     QChar qchLastDigit = strVersion[strVersion.length() - 1];
     66    const QChar qchLastDigit = strVersion[strVersion.length() - 1];
    6767    if (   qchLastDigit == '1'
    6868        || qchLastDigit == '3'
     
    7979        {
    8080            strVersion.chop(2);
    81             strVersion += "10"; /* Current for 5.0.x */
     81            strVersion += "6"; /* Current for 5.2.x */
    8282        }
    8383    }
     
    8585    /* Prepare source/target: */
    8686    const QString strSourceName = QString("%1_%2.iso").arg(GUI_GuestAdditionsName, strVersion);
    87     const QString strSourceFolder = QString("http://download.virtualbox.org/virtualbox/%1/").arg(strVersion);
    88     const QString strSource = strSourceFolder + strSourceName;
     87    const QString strSourcePath = QString("https://download.virtualbox.org/virtualbox/%1/").arg(strVersion);
     88    const QString strSource = strSourcePath + strSourceName;
    8989    const QString strPathSHA256SumsFile = QString("https://www.virtualbox.org/download/hashes/%1/SHA256SUMS").arg(strVersion);
    9090    const QString strTarget = QDir(vboxGlobal().homeFolder()).absoluteFilePath(strSourceName);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette