VirtualBox

Changeset 90566 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 7, 2021 11:41:15 AM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10067: UINotificationCenter: Adjust r146169 according to r146171.

File:
1 edited

Legend:

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

    r90565 r90566  
    144144void UINotificationCenter::setParent(QWidget *pParent)
    145145{
     146    /* Additionally hide if parent unset: */
    146147    if (!pParent)
    147         hide();
     148        setHidden(true);
     149
     150    /* Uninstall filter from previous parent: */
    148151    if (parent())
    149152        parent()->removeEventFilter(this);
     153
     154    /* Reparent: */
    150155    QWidget::setParent(pParent);
     156
     157    /* Install filter to new parent: */
    151158    if (parent())
    152159        parent()->installEventFilter(this);
     160
     161    /* Show only if there is something to show: */
    153162    if (parent())
    154         show();
     163        setHidden(m_pModel->ids().isEmpty());
    155164}
    156165
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