VirtualBox

Changeset 100738 in vbox


Ignore:
Timestamp:
Jul 30, 2023 10:33:22 AM (19 months ago)
Author:
vboxsync
Message:

FE/Qt: ​bugref:10444, ​bugref:10465, ​bugref:10466. Redirect all ext.pack un/installation events whether event source is a IProgress or IVirtualBox to corresponding UICommon signals to unify code paths.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensionpackmanager/UIExtensionPackManager.cpp

    r100737 r100738  
    386386    /* Prepare self: */
    387387    uiCommon().setHelpKeyword(this, "ext-pack-manager");
     388    /* Connect un/install event we get from IVirtualBox to UICommon since all
     389     * ext pack installation events should go through its signal. Several
     390     * other objects listen to those signals for menu update etc: */
     391    connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigExtensionPackInstalled,
     392            &uiCommon(), &UICommon::sigExtensionPackInstalled);
     393    connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigExtensionPackUninstalled,
     394            &uiCommon(), &UICommon::sigExtensionPackUninstalled);
     395
     396
    388397    connect(&uiCommon(), &UICommon::sigExtensionPackInstalled,
    389398            this, &UIExtensionPackManagerWidget::sltHandleExtensionPackInstalled);
    390     connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigExtensionPackInstalled,
    391             this, &UIExtensionPackManagerWidget::sltHandleExtensionPackInstalled);
    392     connect(gVBoxEvents, &UIVirtualBoxEventHandler::sigExtensionPackUninstalled,
    393             this, &UIExtensionPackManagerWidget::sltHandleExtensionPackUninstalled);
    394399
    395400    /* Prepare stuff: */
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