Changeset 92414 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 14, 2021 2:12:13 PM (3 years ago)
- 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 1822 1822 UIActionPool *pActionPool) 1823 1823 { 1824 Q_UNUSED(pActionPool);1825 1824 QUuid uMachineOrGlobalId = uMachineID == QUuid() ? gEDataManager->GlobalID : uMachineID; 1826 1825 … … 1828 1827 QPointer<UIMediumSelector> pSelector = new UIMediumSelector(uCurrentMediumId, enmMediumType, strMachineName, 1829 1828 strMachineFolder, strMachineGuestOSTypeId, 1830 uMachineOrGlobalId, pDialogParent );1829 uMachineOrGlobalId, pDialogParent, pActionPool); 1831 1830 1832 1831 if (!pSelector) -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumSelector.cpp
r92412 r92414 55 55 UIMediumSelector::UIMediumSelector(const QUuid &uCurrentMediumId, UIMediumDeviceType enmMediumType, const QString &machineName, 56 56 const QString &machineSettingsFilePath, const QString &strMachineGuestOSTypeId, 57 const QUuid &uMachineID, QWidget *pParent )57 const QUuid &uMachineID, QWidget *pParent, UIActionPool *pActionPool) 58 58 :QIWithRetranslateUI<QIMainDialog>(pParent) 59 59 , m_pCentralWidget(0) … … 79 79 , m_strMachineGuestOSTypeId(strMachineGuestOSTypeId) 80 80 , m_uMachineID(uMachineID) 81 , m_pActionPool(pActionPool) 81 82 { 82 83 /* Start full medium-enumeration (if necessary): */ … … 452 453 void UIMediumSelector::sltCreateMedium() 453 454 { 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, 455 456 m_strMachineName, m_strMachineGuestOSTypeId); 456 457 /* 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 36 36 class QVBoxLayout; 37 37 class QIDialogButtonBox; 38 class QIToolBar; 39 class UIActionPool; 38 40 class UIMediumItem; 39 41 class UIMediumSearchWidget; 40 class QIToolBar;41 42 42 43 … … 53 54 UIMediumSelector(const QUuid &uCurrentMediumId, UIMediumDeviceType enmMediumType, const QString &machineName, 54 55 const QString &machineSettingsFilePath, const QString &strMachineGuestOSTypeId, 55 const QUuid &uMachineID, QWidget *pParent );56 const QUuid &uMachineID, QWidget *pParent, UIActionPool *pActionPool); 56 57 /** Disables/enables the create action and controls its visibility. */ 57 58 void setEnableCreateAction(bool fEnable); … … 154 155 QUuid m_uMachineID; 155 156 QUuid m_uCurrentMediumId; 157 UIActionPool *m_pActionPool; 156 158 }; 157 159
Note:
See TracChangeset
for help on using the changeset viewer.