VirtualBox

Changeset 68663 in vbox for trunk


Ignore:
Timestamp:
Sep 5, 2017 6:47:43 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:7820: Runtime UI: Make sure there are no traces of audio menu/indicator if audio is disabled.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
2 edited

Legend:

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

    r68541 r68663  
    454454            setState(enmState);
    455455        }
    456         else
    457         {
    458             strFullData = QString(s_strTableRow1).arg(QApplication::translate("UIGDetails", "Disabled", "details (audio)"));
    459             setState(AudioState_AllOff);
    460         }
     456
     457        /* Hide indicator if adapter is disabled: */
     458        if (!fAudioEnabled)
     459            hide();
    461460
    462461        /* Update tool-tip: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r68508 r68663  
    21552155    }
    21562156
     2157    /* Audio stuff: */
     2158    {
     2159        /* Check whether audio controller is enabled. */
     2160        const CAudioAdapter &comAdapter = machine().GetAudioAdapter();
     2161        if (comAdapter.isNull() || !comAdapter.GetEnabled())
     2162            restrictionForDevices = (UIExtraDataMetaDefs::RuntimeMenuDevicesActionType)(restrictionForDevices | UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_Audio);
     2163    }
     2164
    21572165    /* Network stuff: */
    21582166    {
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