VirtualBox

Ignore:
Timestamp:
May 17, 2007 7:24:25 PM (18 years ago)
Author:
vboxsync
Message:

Changing “Guest Addition Outdated” message.
Separated messages done:

  1. for fully outdated additions.
  2. for normal additions in case of there is newly version available.
File:
1 edited

Legend:

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

    r2700 r2703  
    5858
    5959#include <VBox/VBoxGuest.h>
    60 #define VBOX_GUEST_ADDITIONS_VERSION_OK(additionsVersion) \
    61         (RT_HIWORD(additionsVersion) == RT_HIWORD(VMMDEV_VERSION) && \
    62          RT_LOWORD(additionsVersion) <= RT_LOWORD(VMMDEV_VERSION))
    6360
    6461#if defined(Q_WS_X11)
     
    25152512     * compatibility issues in case of installed version is outdated. */
    25162513    uint version = aVersion.toUInt();
    2517     bool isVersionOk = VBOX_GUEST_ADDITIONS_VERSION_OK (version);
    2518     if (!isVersionOk)
     2514    QString fullVersion = QString ("%1.%2")
     2515        .arg (RT_HIWORD (version)).arg (RT_LOWORD (version));
     2516
     2517    if (RT_HIWORD (version) < RT_HIWORD (VMMDEV_VERSION))
    25192518        vboxProblem().message (this, VBoxProblemReporter::Warning,
    2520             tr ("<p>Current Guest Additions version is outdated. Please install "
    2521                 "the latest version to avoid compatibility issues.</p>"));
     2519            tr ("<p>Your Guest Additions are outdated (current version: %1).</p>"
     2520                "<p>You must update to the latest version by choosing Devices "
     2521                "- Install Guest Additions.</p>").arg (fullVersion));
     2522    else if (RT_HIWORD (version) == RT_HIWORD (VMMDEV_VERSION) &&
     2523             RT_LOWORD (version) <  RT_LOWORD (VMMDEV_VERSION))
     2524        vboxProblem().message (this, VBoxProblemReporter::Warning,
     2525            tr ("<p>Your Guest Additions are outdated (current version: %1).</p>"
     2526                "<p>There is a newer Guest Additions version. You should update "
     2527                "to the latest version by choosing Devices "
     2528                "- Install Guest Additions.</p>").arg (fullVersion));
    25222529}
    25232530
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