VirtualBox

Changeset 84892 in vbox for trunk


Ignore:
Timestamp:
Jun 22, 2020 10:23:02 AM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9515. Passing the default IUnattended properties to the wizard to initialize fields correctly.

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

Legend:

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

    r84890 r84892  
    613613        AssertMsg(!comUnattendedInstaller.isNull(), ("Could not create unattended installer!\n"));
    614614
     615        UIUnattendedInstallData unattendedInstallData;
     616        unattendedInstallData.m_strUserName = comUnattendedInstaller.GetUser();
     617        unattendedInstallData.m_strPassword = comUnattendedInstaller.GetPassword();
     618
     619        pWizard->setDefaultUnattendedInstallData(unattendedInstallData);
     620
    615621        /* Execute wizard: */
    616622        pWizard->exec();
    617623
    618624        /* Cache unattended install related info and delete the wizard before handling the unattended install stuff: */
    619         UIUnattendedInstallData unattendedInstallData = pWizard->unattendedInstallData();
     625        unattendedInstallData = pWizard->unattendedInstallData();
    620626
    621627        delete pWizard;
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.h

    r84890 r84892  
    3636class UIAction;
    3737class UIActionPool;
    38 class UIUnattendedInstallData;
     38struct UIUnattendedInstallData;
    3939class UIVirtualBoxManagerWidget;
    4040class UIVirtualMachineItem;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp

    r84890 r84892  
    511511}
    512512
     513void UIWizardNewVM::setDefaultUnattendedInstallData(const UIUnattendedInstallData &unattendedInstallData)
     514{
     515    m_unattendedInstallData = unattendedInstallData;
     516}
     517
    513518const UIUnattendedInstallData &UIWizardNewVM::unattendedInstallData() const
    514519{
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.h

    r84890 r84892  
    7373    /** Returns the Id of newly created VM. */
    7474    QUuid createdMachineId() const;
     75    void setDefaultUnattendedInstallData(const UIUnattendedInstallData &unattendedInstallData);
    7576    const UIUnattendedInstallData &unattendedInstallData() const;
    7677    bool isUnattendedInstallEnabled() const;
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