VirtualBox

Ignore:
Timestamp:
Feb 10, 2023 2:58:35 PM (2 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10322: Runtime UI: Regression fix for UIIndicatorsPool; Do not try to manage indicator's visibility while indicator's parent invisible itself.

File:
1 edited

Legend:

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

    r98516 r98525  
    202202        m_pMachine->acquireHardDiskStatusInfo(strFullData, fAttachmentsPresent);
    203203
    204         /* Hide indicator if there are no attachments: */
    205         setVisible(fAttachmentsPresent);
     204        /* Show/hide indicator if there are no attachments
     205         * and parent is visible already: */
     206        if (   parentWidget()
     207            && parentWidget()->isVisible())
     208            setVisible(fAttachmentsPresent);
    206209
    207210        /* Update tool-tip: */
     
    243246        m_pMachine->acquireOpticalDiskStatusInfo(strFullData, fAttachmentsPresent, fAttachmentsMounted);
    244247
    245         /* Hide indicator if there are no attachments: */
    246         setVisible(fAttachmentsPresent);
     248        /* Show/hide indicator if there are no attachments
     249         * and parent is visible already: */
     250        if (   parentWidget()
     251            && parentWidget()->isVisible())
     252            setVisible(fAttachmentsPresent);
    247253
    248254        /* Update tool-tip: */
     
    284290        m_pMachine->acquireFloppyDiskStatusInfo(strFullData, fAttachmentsPresent, fAttachmentsMounted);
    285291
    286         /* Hide indicator if there are no attachments: */
    287         setVisible(fAttachmentsPresent);
     292        /* Show/hide indicator if there are no attachments
     293         * and parent is visible already: */
     294        if (   parentWidget()
     295            && parentWidget()->isVisible())
     296            setVisible(fAttachmentsPresent);
    288297
    289298        /* 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