VirtualBox

Changeset 93661 in vbox for trunk/src


Ignore:
Timestamp:
Feb 8, 2022 3:26:58 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10193. Add a missing connection in expert page and disable clone mode widget if clone is linked.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizard.cpp

    r93660 r93661  
    648648}
    649649
    650 
    651650bool UINativeWizard::isLastVisiblePage(int iPageIndex) const
    652651{
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMExpertPage.cpp

    r93659 r93661  
    8080                this, &UIWizardCloneVMExpertPage::sltKeepHardwareUUIDsToggled);
    8181    }
     82    if (m_pCloneTypeGroupBox)
     83        connect(m_pCloneTypeGroupBox, &UICloneVMCloneTypeGroupBox::sigFullCloneSelected,
     84                this, &UIWizardCloneVMExpertPage::sltCloneTypeChanged);
     85
    8286    retranslateUi();
    8387}
     
    118122        pWizard->setCloneMode(m_pCloneModeGroupBox->cloneMode());
    119123
    120     if (m_pCloneModeGroupBox)
    121         m_pCloneModeGroupBox->setEnabled(pWizard->machineHasSnapshot());
     124    setCloneModeGroupBoxEnabled();
    122125
    123126    retranslateUi();
     127}
     128
     129void UIWizardCloneVMExpertPage::setCloneModeGroupBoxEnabled()
     130{
     131    UIWizardCloneVM *pWizard = wizardWindow<UIWizardCloneVM>();
     132    AssertReturnVoid(pWizard);
     133
     134    if (m_pCloneModeGroupBox)
     135        m_pCloneModeGroupBox->setEnabled(pWizard->machineHasSnapshot() && !pWizard->linkedClone());
    124136}
    125137
     
    171183    wizardWindow<UIWizardCloneVM>()->setKeepHardwareUUIDs(fKeepHardwareUUIDs);
    172184}
     185
     186void UIWizardCloneVMExpertPage::sltCloneTypeChanged(bool fIsFullClone)
     187{
     188    UIWizardCloneVM *pWizard = wizardWindow<UIWizardCloneVM>();
     189    AssertReturnVoid(pWizard);
     190    pWizard->setLinkedClone(!fIsFullClone);
     191    setCloneModeGroupBoxEnabled();
     192}
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMExpertPage.h

    r93115 r93661  
    5050    void sltKeepDiskNamesToggled(bool fKeepDiskNames);
    5151    void sltKeepHardwareUUIDsToggled(bool fKeepHardwareUUIDs);
     52    void sltCloneTypeChanged(bool fIsFullClone);
    5253
    5354private:
     
    6364    bool isComplete() const;
    6465    bool validatePage();
     66    void setCloneModeGroupBoxEnabled();
    6567
    6668    UICloneVMNamePathEditor *m_pNamePathGroupBox;
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