VirtualBox

Ignore:
Timestamp:
Feb 14, 2023 7:15:18 PM (2 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10322: Runtime UI: Same as in r155801, just for remaining places missed before.

File:
1 edited

Legend:

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

    r98525 r98569  
    344344        m_pMachine->acquireAudioStatusInfo(strFullData, fAudioEnabled, fEnabledOutput, fEnabledInput);
    345345
    346         /* Hide indicator if no audio enabled: */
    347         setVisible(fAudioEnabled);
     346        /* Show/hide indicator if there are no attachments
     347         * and parent is visible already: */
     348        if (   parentWidget()
     349            && parentWidget()->isVisible())
     350            setVisible(fAudioEnabled);
    348351
    349352        /* Update tool-tip: */
     
    424427        m_pMachine->acquireNetworkStatusInfo(strFullData, fAdaptersPresent, fCablesDisconnected);
    425428
    426         /* Hide indicator if there are no enabled adapters: */
    427         setVisible(fAdaptersPresent);
     429        /* Show/hide indicator if there are no attachments
     430         * and parent is visible already: */
     431        if (   parentWidget()
     432            && parentWidget()->isVisible())
     433            setVisible(fAdaptersPresent);
    428434
    429435        /* Update tool-tip: */
     
    467473        m_pMachine->acquireUsbStatusInfo(strFullData, fUsbEnabled);
    468474
    469         /* Hide indicator if no USB enabled: */
    470         setVisible(fUsbEnabled);
     475        /* Show/hide indicator if there are no attachments
     476         * and parent is visible already: */
     477        if (   parentWidget()
     478            && parentWidget()->isVisible())
     479            setVisible(fUsbEnabled);
    471480
    472481        /* Update tool-tip: */
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