VirtualBox

Changeset 79657 in vbox


Ignore:
Timestamp:
Jul 10, 2019 8:26:57 AM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9484: Export Appliance wizard: A bit of cleanup.

File:
1 edited

Legend:

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

    r79590 r79657  
    321321            return msgCenter().cannotExportAppliance(comProgress, comAppliance.GetPath(), this);
    322322
    323         /* For Export-then-ask mode we should popup the New Cloud VM wizard in short mode now: */
    324         if (   field("isFormatCloudOne").toBool()
    325             && field("cloudExportMode").value<CloudExportMode>() == CloudExportMode_ExportThenAsk)
    326         {
    327             /* Get the required parameters to init short wizard mode: */
    328             CCloudClient comClient = field("client").value<CCloudClient>();
    329             CVirtualSystemDescription comDescription = field("vsd").value<CVirtualSystemDescription>();
    330             /* Create and run wizard as modal dialog: */
    331             QWidget *pWizardParent = windowManager().realParentWindow(this);
    332             UISafePointerWizardNewCloudVM pWizard = new UIWizardNewCloudVM(pWizardParent, comClient, comDescription);
    333             windowManager().registerNewParent(pWizard, pWizardParent);
    334             pWizard->prepare();
    335             pWizard->exec();
    336             delete pWizard;
     323        /* Is this VM being exported to cloud? */
     324        if (field("isFormatCloudOne").toBool())
     325        {
     326            switch (field("cloudExportMode").value<CloudExportMode>())
     327            {
     328                case CloudExportMode_ExportThenAsk:
     329                {
     330                    /* Get the required parameters to init short wizard mode: */
     331                    CCloudClient comClient = field("client").value<CCloudClient>();
     332                    CVirtualSystemDescription comDescription = field("vsd").value<CVirtualSystemDescription>();
     333                    /* Create and run short wizard mode as modal dialog: */
     334                    QWidget *pWizardParent = windowManager().realParentWindow(this);
     335                    UISafePointerWizardNewCloudVM pWizard = new UIWizardNewCloudVM(pWizardParent, comClient, comDescription);
     336                    windowManager().registerNewParent(pWizard, pWizardParent);
     337                    pWizard->prepare();
     338                    pWizard->exec();
     339                    delete pWizard;
     340                    break;
     341                }
     342                default:
     343                    break;
     344            }
    337345        }
    338346    }
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