VirtualBox

Changeset 102322 in vbox


Ignore:
Timestamp:
Nov 27, 2023 1:54:40 PM (16 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160456
Message:

FE/Qt: bugref:10450: Handle final commit data call for UIVirtualBoxManagerWidget as well; Mostly the same connection cleanup as for parent UIVirtualBoxManager.

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

Legend:

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

    r102268 r102322  
    767767
    768768    // WORKAROUND:
    769     // This will be fixed proper way during session management cleanaup for Qt6.
     769    // This will be fixed proper way during session management cleanup for Qt6.
    770770    // But for now we will just cleanup connections which is Ok anyway.
    771771    cleanupConnections();
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.cpp

    r102308 r102322  
    344344}
    345345
     346void UIVirtualBoxManagerWidget::sltHandleCommitData()
     347{
     348    // WORKAROUND:
     349    // This will be fixed proper way during session management cleanup for Qt6.
     350    // But for now we will just cleanup connections which is Ok anyway.
     351    cleanupConnections();
     352}
     353
    346354void UIVirtualBoxManagerWidget::sltHandleStateChange(const QUuid &uId)
    347355{
     
    788796void UIVirtualBoxManagerWidget::prepareConnections()
    789797{
     798    /* UICommon connections: */
     799    connect(&uiCommon(), &UICommon::sigAskToCommitData,
     800            this, &UIVirtualBoxManagerWidget::sltHandleCommitData);
     801
    790802    /* Global VBox event handlers: */
    791803    connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigMachineStateChange,
     
    11021114void UIVirtualBoxManagerWidget::cleanup()
    11031115{
     1116    /* Ask sub-dialogs to commit data: */
     1117    sltHandleCommitData();
     1118
    11041119    /* Cleanup everything: */
    1105     cleanupConnections();
    11061120    cleanupWidgets();
    11071121}
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManagerWidget.h

    r102120 r102322  
    265265private slots:
    266266
     267    /** @name General stuff.
     268      * @{ */
     269        /** Handles request to commit data. */
     270        void sltHandleCommitData();
     271    /** @} */
     272
    267273    /** @name CVirtualBox event handling stuff.
    268274      * @{ */
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