VirtualBox

Changeset 84871 in vbox for trunk/src


Ignore:
Timestamp:
Jun 18, 2020 12:22:57 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9515. Handling new vm wizard cancel a bit better.

File:
1 edited

Legend:

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

    r84869 r84871  
    18731873void UIVirtualBoxManager::startUnattendedInstall(const QUuid &uMachineUid, const QString &strISOPath, bool fStartHeadless)
    18741874{
     1875    CVirtualBox comVBox = uiCommon().virtualBox();
     1876    CMachine comMachine = comVBox.FindMachine(uMachineUid.toString());
     1877    if (comMachine.isNull())
     1878        return;
     1879
    18751880    if (!QFileInfo(strISOPath).exists())
    18761881    {
     
    18791884    }
    18801885
    1881     CVirtualBox comVBox = uiCommon().virtualBox();
    18821886    CUnattended comUnattendedInstaller = comVBox.CreateUnattendedInstaller();
    18831887    AssertMsgReturnVoid(!comUnattendedInstaller.isNull(), ("Could not create unattended installer!\n"));
    1884     CMachine comMachine = comVBox.FindMachine(uMachineUid.toString());
    1885     AssertMsgReturnVoid(!comMachine.isNull(), ("Failed to find CMachine for the uuid %u!\n", uMachineUid));
    18861888
    18871889    comUnattendedInstaller.SetIsoPath(strISOPath);
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