VirtualBox

Changeset 67408 in vbox


Ignore:
Timestamp:
Jun 14, 2017 2:04:37 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: Selector UI: Tools pane: Snapshot pane: Make sure USB details are not enlisted if USB is not available.

File:
1 edited

Legend:

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

    r67407 r67408  
    579579        else if (m_pixmapScreenshot.isNull() && !m_details.value(DetailsElementType_Preview)->isHidden())
    580580            m_details.value(DetailsElementType_Preview)->setHidden(true);
     581
     582        /* Update USB details visibility: */
     583        const CUSBDeviceFilters &comFilters = comMachine.GetUSBDeviceFilters();
     584        const bool fUSBMissing = comFilters.isNull() || !comMachine.GetUSBProxyAvailable();
     585        if (fUSBMissing && !m_details.value(DetailsElementType_USB)->isHidden())
     586            m_details.value(DetailsElementType_USB)->setHidden(true);
    581587
    582588        /* Rebuild the details report: */
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