VirtualBox

Changeset 83352 in vbox for trunk


Ignore:
Timestamp:
Mar 20, 2020 3:42:09 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9623: VirtualBox Manager: Details pane: A set of details should handle enumeration signals of media which are directly related to it only; This reduces amount of spam messages unrelated to current set.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager/details
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsSet.cpp

    r83270 r83352  
    2626#include "UIDetailsModel.h"
    2727#include "UIDetailsSet.h"
     28#include "UIMedium.h"
    2829#include "UIVirtualBoxEventHandler.h"
    2930#include "UIVirtualMachineItemCloud.h"
     
    581582}
    582583
    583 void UIDetailsSet::sltUpdateAppearance()
    584 {
     584void UIDetailsSet::sltMediumEnumerated(const QUuid &uId)
     585{
     586    /* Is this our medium changed? */
     587    const UIMedium guiMedium = uiCommon().medium(uId);
     588    if (   guiMedium.isNull()
     589        || !guiMedium.machineIds().contains(m_machine.GetId()))
     590        return;
     591
    585592    /* Update appearance: */
    586593    rebuildSet();
     
    605612
    606613    /* Meidum-enumeration connections: */
    607     connect(&uiCommon(), &UICommon::sigMediumEnumerationStarted, this, &UIDetailsSet::sltUpdateAppearance);
    608     connect(&uiCommon(), &UICommon::sigMediumEnumerationFinished, this, &UIDetailsSet::sltUpdateAppearance);
     614    connect(&uiCommon(), &UICommon::sigMediumEnumerated, this, &UIDetailsSet::sltMediumEnumerated);
    609615}
    610616
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsSet.h

    r83179 r83352  
    141141    /** @name Item stuff.
    142142      * @{ */
    143         /** Updates item appearance. */
    144         void sltUpdateAppearance();
     143        /** Handles enumerated signal for medium with @a uId. */
     144        void sltMediumEnumerated(const QUuid &uId);
    145145    /** @} */
    146146
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