VirtualBox

Changeset 108208 in vbox


Ignore:
Timestamp:
Feb 13, 2025 4:44:37 PM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167528
Message:

FE/Qt: bugref:10814: VBox Manager / Tools pane: Manual cleanup for model/view objects; That is required for proper model/view object hierarchy control.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UITools.cpp

    r108202 r108208  
    180180}
    181181
     182void UITools::cleanupView()
     183{
     184    delete m_pToolsView;
     185    m_pToolsView = 0;
     186}
     187
     188void UITools::cleanupModel()
     189{
     190    delete m_pToolsModel;
     191    m_pToolsModel = 0;
     192}
     193
    182194void UITools::cleanup()
    183195{
    184196    /* Cleanup everything: */
    185197    cleanupConnections();
    186 }
     198    cleanupView();
     199    cleanupModel();
     200}
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UITools.h

    r108201 r108208  
    119119        /** Cleanups connections. */
    120120        void cleanupConnections();
     121        /** Cleanups view. */
     122        void cleanupView();
     123        /** Cleanups model. */
     124        void cleanupModel();
    121125        /** Cleanups all. */
    122126        void cleanup();
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