VirtualBox

Changeset 38582 in vbox


Ignore:
Timestamp:
Aug 31, 2011 1:09:09 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
73773
Message:

FE/Qt: also show the version of the old installed extpack

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

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

    r38575 r38582  
    17901790}
    17911791
    1792 bool UIMessageCenter::proposeDownloadExtensionPack(const QString &strExtPackName)
     1792bool UIMessageCenter::proposeDownloadExtensionPack(const QString &strExtPackName, const QString &strExtPackVersion)
    17931793{
    17941794    return messageOkCancel(mainWindowShown(), Question,
    1795                            tr("<p>You have an old <b><nobr>%1</nobr></b> installed.</p>"
     1795                           tr("<p>You have an old version (%1) of the <b><nobr>%2</nobr></b> installed.</p>"
    17961796                              "<p>Do you wish to download latest one from the Internet?</p>")
    1797                               .arg(strExtPackName),
     1797                              .arg(strExtPackVersion).arg(strExtPackName),
    17981798                           0, /* Auto-confirm Id */
    17991799                           tr("Download", "extension pack"));
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h

    r38575 r38582  
    310310    void warnAboutUserManualCantBeSaved(const QString &strURL, const QString &strTarget);
    311311
    312     bool proposeDownloadExtensionPack(const QString &strExtPackName);
     312    bool proposeDownloadExtensionPack(const QString &strExtPackName, const QString &strExtPackVersion);
    313313    bool confirmDownloadExtensionPack(const QString &strExtPackName, const QString &strURL, qulonglong uSize);
    314314    bool proposeInstallExtentionPack(const QString &strExtPackName, const QString &strFrom, const QString &strTo);
  • trunk/src/VBox/Frontends/VirtualBox/src/net/UIUpdateManager.cpp

    r38575 r38582  
    138138    VBoxVersion vboxVersion(vboxGlobal().vboxVersionStringNormalized());
    139139    /* Get extension pack version: */
    140     VBoxVersion extPackVersion(extPack.GetVersion().remove(VBOX_BUILD_PUBLISHER));
     140    QString strExtPackVersion(extPack.GetVersion().remove(VBOX_BUILD_PUBLISHER));
     141    VBoxVersion extPackVersion(strExtPackVersion);
    141142    /* Check if extension pack version less than required: */
    142143    if ((vboxVersion.z() % 2 != 0) /* Skip unstable VBox version */ ||
     
    145146
    146147    /* Ask the user about extension pack downloading: */
    147     if (!msgCenter().proposeDownloadExtensionPack(UI_ExtPackName))
     148    if (!msgCenter().proposeDownloadExtensionPack(UI_ExtPackName, strExtPackVersion))
    148149        return;
    149150
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