VirtualBox

Changeset 108199 in vbox


Ignore:
Timestamp:
Feb 13, 2025 3:42:40 PM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167517
Message:

FE/Qt: Snapshot-pane: Install cleanup handler; We have to wipe out snapshot items before COM deinit.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/snapshots
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotPane.cpp

    r107688 r108199  
    684684}
    685685
     686void UISnapshotPane::sltDetachCOM()
     687{
     688    /* Clear machine item list: */
     689    setMachineItems(QList<UIVirtualMachineItem*>());
     690}
     691
    686692void UISnapshotPane::sltHandleMachineDataChange(const QUuid &uMachineId)
    687693{
     
    13321338void UISnapshotPane::prepareConnections()
    13331339{
     1340    /* Install cleanup handler: */
     1341    connect(&uiCommon(), &UICommon::sigAskToDetachCOM,
     1342            this, &UISnapshotPane::sltDetachCOM);
     1343
    13341344    /* Configure Main event connections: */
    13351345    connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigMachineDataChange,
  • trunk/src/VBox/Frontends/VirtualBox/src/snapshots/UISnapshotPane.h

    r106061 r108199  
    111111
    112112private slots:
     113
     114    /** @name Common signal handlers.
     115      * @{ */
     116        void sltDetachCOM();
     117    /** @} */
    113118
    114119    /** @name Main event handlers.
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette