VirtualBox

Changeset 84362 in vbox for trunk/src


Ignore:
Timestamp:
May 19, 2020 11:01:18 AM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: Add Cloud VM wizard: Using new API which allows to list source instances only.

File:
1 edited

Legend:

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

    r83857 r84362  
    295295            setClient(comCloudClient);
    296296
    297             /* Gather instance names, ids and states.
    298              * Currently we are interested in Running and Stopped instances only. */
     297            /* Gather instance names and ids: */
    299298            CStringArray comNames;
    300299            CStringArray comIDs;
    301             const QVector<KCloudMachineState> cloudMachineStates  = QVector<KCloudMachineState>()
    302                                                                  << KCloudMachineState_Running
    303                                                                  << KCloudMachineState_Stopped;
    304300
    305301            /* Ask for cloud instances: */
    306             CProgress comProgress = comCloudClient.ListInstances(cloudMachineStates, comNames, comIDs);
     302            CProgress comProgress = comCloudClient.ListSourceInstances(comNames, comIDs);
    307303            if (!comCloudClient.isOk())
    308304            {
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