VirtualBox

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


Ignore:
Timestamp:
Dec 18, 2024 1:02:30 PM (4 weeks ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10814: VBox Manager: Rework the cleanup procedures for Global and Machine tool managers; No need to cleanup connections twice as they are certainly cleaned up by the UICommon's cleanup signal.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager
Files:
4 edited

Legend:

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

    r107351 r107352  
    5454}
    5555
    56 UIGlobalToolsManagerWidget::~UIGlobalToolsManagerWidget()
    57 {
    58     cleanup();
    59 }
    60 
    6156UIToolPaneGlobal *UIGlobalToolsManagerWidget::toolPane() const
    6257{
     
    169164void UIGlobalToolsManagerWidget::sltHandleCommitData()
    170165{
    171     // WORKAROUND:
    172     // This will be fixed proper way during session management cleanup for Qt6.
    173     // But for now we will just cleanup connections which is Ok anyway.
    174166    cleanupConnections();
    175167}
     
    288280    disconnect(toolPaneMachine(), &UIToolPaneMachine::sigSwitchToActivityOverviewPane,
    289281               this, &UIGlobalToolsManagerWidget::sltSwitchToActivitiesTool);
    290 }
    291 
    292 void UIGlobalToolsManagerWidget::cleanup()
    293 {
    294     /* Ask sub-dialogs to commit data: */
    295     sltHandleCommitData();
    296282}
    297283
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIGlobalToolsManagerWidget.h

    r107348 r107352  
    6565      * @param  pActionPool  Brings the action-pool reference.  */
    6666    UIGlobalToolsManagerWidget(UIVirtualBoxManagerAdvancedWidget *pParent, UIActionPool *pActionPool);
    67     /** Destructs Global Tools Manager widget. */
    68     virtual ~UIGlobalToolsManagerWidget() RT_OVERRIDE;
    6967
    7068    /** @name Common stuff.
     
    148146        /** Cleanups connections. */
    149147        void cleanupConnections();
    150         /** Cleanups all. */
    151         void cleanup();
    152148    /** @} */
    153149
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIMachineManagerWidget.cpp

    r107347 r107352  
    6161}
    6262
    63 UIMachineManagerWidget::~UIMachineManagerWidget()
    64 {
    65     cleanup();
    66 }
    67 
    6863UIChooser *UIMachineManagerWidget::chooser() const
    6964{
     
    215210void UIMachineManagerWidget::sltHandleCommitData()
    216211{
    217     // WORKAROUND:
    218     // This will be fixed proper way during session management cleanup for Qt6.
    219     // But for now we will just cleanup connections which is Ok anyway.
    220212    cleanupConnections();
    221213}
     
    548540    disconnect(toolMenu(), &UITools::sigSelectionChanged,
    549541               this, &UIMachineManagerWidget::sltHandleToolsMenuIndexChange);
    550 }
    551 
    552 void UIMachineManagerWidget::cleanup()
    553 {
    554     /* Ask sub-dialogs to commit data: */
    555     sltHandleCommitData();
    556542}
    557543
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIMachineManagerWidget.h

    r107343 r107352  
    9494      * @param  pActionPool  Brings the action-pool reference. */
    9595    UIMachineManagerWidget(UIToolPaneGlobal *pParent, UIActionPool *pActionPool);
    96     /** Destructs Machine Manager widget. */
    97     virtual ~UIMachineManagerWidget() RT_OVERRIDE;
    9896
    9997    /** @name Common stuff.
     
    233231        /** Cleanups connections. */
    234232        void cleanupConnections();
    235         /** Cleanups all. */
    236         void cleanup();
    237233    /** @} */
    238234
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