VirtualBox

Changeset 106207 in vbox


Ignore:
Timestamp:
Oct 2, 2024 12:16:13 PM (4 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10784: VBox Manager / Details pane: COM wrappers cleanup on corresponding signal; Prevents a crash in CMachine wrapper cleanup after COM deinit.

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

Legend:

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

    r106206 r106207  
    3535
    3636/* GUI includes: */
     37#include "UICommon.h"
    3738#include "UIConverter.h"
    3839#include "UIDesktopWidgetWatchdog.h"
     
    738739}
    739740
     741void UIDetailsModel::sltDetachCOM()
     742{
     743    /* Clear model of unwanted machine-items: */
     744    setItems(QList<UIVirtualMachineItem*>());
     745}
     746
    740747void UIDetailsModel::sltToggleAnimationFinished(DetailsElementType enmType, bool fToggled)
    741748{
     
    767774void UIDetailsModel::prepare()
    768775{
     776    /* Install cleanup handler: */
     777    connect(&uiCommon(), &UICommon::sigAskToDetachCOM,
     778            this, &UIDetailsModel::sltDetachCOM);
     779
    769780    /* Prepare scene: */
    770781    m_pScene = new QGraphicsScene(this);
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsModel.h

    r106206 r106207  
    191191
    192192private slots:
     193
     194    /** Handles command to detach COM. */
     195    void sltDetachCOM();
    193196
    194197    /** Handles sigal about details element of certain @a enmType toggling finished, making element @a fToggled. */
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