VirtualBox

Ignore:
Timestamp:
Jan 26, 2012 12:54:50 AM (13 years ago)
Author:
vboxsync
Message:

Config.kmk,VMMDev,Main,QtGui,VBoxManage: Refactored IGuest::additionsVersion and associated acts, splitting it up into additionsVersion and additionsRevision like IVirtualBox and IExtPack handles versioning. Fixed missing saved state in VMMDev where the VMMDevReq_ReportGuestInfo2 info was not saved and Main+Frontends led to believe we were running guest additions older than 3.2. The changes have be subjected to limited testing. Added TODOs for another missing save in VMMDev.

File:
1 edited

Legend:

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

    r35761 r39882  
    452452    {
    453453        CConsole console = mSession.GetConsole();
     454
    454455        ULONG width = 0;
    455456        ULONG height = 0;
     
    461462        if (bpp)
    462463            resolution += QString ("x%1").arg (bpp);
    463         QString virtualization = console.GetDebugger().GetHWVirtExEnabled() ?
     464
     465        CMachineDebugger debugger = console.GetDebugger();
     466        QString virtualization = debugger.GetHWVirtExEnabled() ?
    464467            VBoxGlobal::tr ("Enabled", "details report (VT-x/AMD-V)") :
    465468            VBoxGlobal::tr ("Disabled", "details report (VT-x/AMD-V)");
    466         QString nested = console.GetDebugger().GetHWVirtExNestedPagingEnabled() ?
     469        QString nested = debugger.GetHWVirtExNestedPagingEnabled() ?
    467470            VBoxGlobal::tr ("Enabled", "details report (Nested Paging)") :
    468471            VBoxGlobal::tr ("Disabled", "details report (Nested Paging)");
    469         QString addVersionStr = console.GetGuest().GetAdditionsVersion();
     472
     473        CGuest guest = console.GetGuest();
     474        QString addVersionStr = guest.GetAdditionsVersion();
    470475        if (addVersionStr.isEmpty())
    471             addVersionStr = tr ("Not Detected", "guest additions");
    472         QString osType = console.GetGuest().GetOSTypeId();
     476            addVersionStr = tr("Not Detected", "guest additions");
     477        else
     478        {
     479            ULONG revision = guest.GetAdditionsRevision();
     480            if (revision != 0)
     481                addVersionStr += QString(" r%1").arg(revision);
     482        }
     483        QString osType = guest.GetOSTypeId();
    473484        if (osType.isEmpty())
    474485            osType = tr ("Not Detected", "guest os type");
    475486        else
    476487            osType = vboxGlobal().vmGuestOSTypeDescription (osType);
     488
    477489        int vrdePort = console.GetVRDEServerInfo().GetPort();
    478490        QString vrdeInfo = (vrdePort == 0 || vrdePort == -1)?
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