VirtualBox

Changeset 28561 in vbox


Ignore:
Timestamp:
Apr 21, 2010 12:23:37 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt: show the additions version in ( ) if the guest additions are currently not active

File:
1 edited

Legend:

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

    r28558 r28561  
    574574        QString addVersionStr;
    575575        if (!addVersion.isEmpty() && !addRevision.isEmpty())
    576             addVersionStr = addVersion + " r" + m.GetGuestPropertyValue("/VirtualBox/GuestAdd/Revision");
     576        {
     577            QString addInfo = console.GetGuest().GetAdditionsVersion();
     578            addVersionStr = (addInfo.isEmpty() ? "(" : "")
     579                          + addVersion
     580                          + " r"
     581                          + m.GetGuestPropertyValue("/VirtualBox/GuestAdd/Revision")
     582                          + (addInfo.isEmpty() ? ")" : "");
     583        }
    577584        else
    578585            addVersionStr = tr ("Not Detected", "guest additions");
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