VirtualBox

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


Ignore:
Timestamp:
Nov 14, 2021 2:12:13 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10141. Some more fixes related to the action pool.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp

    r92413 r92414  
    18221822                                       UIActionPool *pActionPool)
    18231823{
    1824     Q_UNUSED(pActionPool);
    18251824    QUuid uMachineOrGlobalId = uMachineID == QUuid() ? gEDataManager->GlobalID : uMachineID;
    18261825
     
    18281827    QPointer<UIMediumSelector> pSelector = new UIMediumSelector(uCurrentMediumId, enmMediumType, strMachineName,
    18291828                                                                strMachineFolder, strMachineGuestOSTypeId,
    1830                                                                 uMachineOrGlobalId, pDialogParent);
     1829                                                                uMachineOrGlobalId, pDialogParent, pActionPool);
    18311830
    18321831    if (!pSelector)
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumSelector.cpp

    r92412 r92414  
    5555UIMediumSelector::UIMediumSelector(const QUuid &uCurrentMediumId, UIMediumDeviceType enmMediumType, const QString &machineName,
    5656                                   const QString &machineSettingsFilePath, const QString &strMachineGuestOSTypeId,
    57                                    const QUuid &uMachineID, QWidget *pParent)
     57                                   const QUuid &uMachineID, QWidget *pParent, UIActionPool *pActionPool)
    5858    :QIWithRetranslateUI<QIMainDialog>(pParent)
    5959    , m_pCentralWidget(0)
     
    7979    , m_strMachineGuestOSTypeId(strMachineGuestOSTypeId)
    8080    , m_uMachineID(uMachineID)
     81    , m_pActionPool(pActionPool)
    8182{
    8283    /* Start full medium-enumeration (if necessary): */
     
    452453void UIMediumSelector::sltCreateMedium()
    453454{
    454     QUuid uMediumId = uiCommon().openMediumCreatorDialog(0 /* action pool */, this, m_enmMediumType, m_strMachineFolder,
     455    QUuid uMediumId = uiCommon().openMediumCreatorDialog(m_pActionPool, this, m_enmMediumType, m_strMachineFolder,
    455456                                                         m_strMachineName, m_strMachineGuestOSTypeId);
    456457    /* Make sure that the data structure is updated and newly created medium is selected and visible: */
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumSelector.h

    r91512 r92414  
    3636class QVBoxLayout;
    3737class QIDialogButtonBox;
     38class QIToolBar;
     39class UIActionPool;
    3840class UIMediumItem;
    3941class UIMediumSearchWidget;
    40 class QIToolBar;
    4142
    4243
     
    5354    UIMediumSelector(const QUuid &uCurrentMediumId, UIMediumDeviceType enmMediumType, const QString &machineName,
    5455                     const QString &machineSettingsFilePath, const QString &strMachineGuestOSTypeId,
    55                      const QUuid &uMachineID, QWidget *pParent);
     56                     const QUuid &uMachineID, QWidget *pParent, UIActionPool *pActionPool);
    5657    /** Disables/enables the create action and controls its visibility. */
    5758    void         setEnableCreateAction(bool fEnable);
     
    154155    QUuid                 m_uMachineID;
    155156    QUuid                 m_uCurrentMediumId;
     157    UIActionPool         *m_pActionPool;
    156158};
    157159
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