VirtualBox

Ignore:
Timestamp:
Sep 30, 2020 3:55:23 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: New Cloud VM wizard: Swap boot-volumes and images tabs, making images the default one.

File:
1 edited

Legend:

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

    r86346 r86351  
    236236                case 0:
    237237                {
    238                     /* Ask for cloud boot-volumes, currently we are interested in Source boot-volumes only: */
    239                     comProgress = comCloudClient.ListSourceBootVolumes(comNames, comIDs);
    240                     break;
    241                 }
    242                 case 1:
    243                 {
    244238                    /* Ask for cloud images, currently we are interested in Available images only: */
    245239                    const QVector<KCloudImageState> cloudImageStates  = QVector<KCloudImageState>()
     
    248242                    break;
    249243                }
     244                case 1:
     245                {
     246                    /* Ask for cloud boot-volumes, currently we are interested in Source boot-volumes only: */
     247                    comProgress = comCloudClient.ListSourceBootVolumes(comNames, comIDs);
     248                    break;
     249                }
    250250                default:
    251251                    break;
     
    345345                case 0:
    346346                {
     347                    /* Add image id to virtual system description: */
     348                    comVSD.AddDescription(KVirtualSystemDescriptionType_CloudImageId, imageId(), QString());
     349                    break;
     350                }
     351                case 1:
     352                {
    347353                    /* Add boot-volume id to virtual system description: */
    348354                    comVSD.AddDescription(KVirtualSystemDescriptionType_CloudBootVolumeId, imageId(), QString());
    349                     break;
    350                 }
    351                 case 1:
    352                 {
    353                     /* Add image id to virtual system description: */
    354                     comVSD.AddDescription(KVirtualSystemDescriptionType_CloudImageId, imageId(), QString());
    355355                    break;
    356356                }
     
    653653
    654654    /* Translate source tab-bar: */
    655     m_pSourceTabBar->setTabText(0, UIWizardNewCloudVM::tr("&Boot Volumes"));
    656     m_pSourceTabBar->setTabText(1, UIWizardNewCloudVM::tr("&Images"));
     655    m_pSourceTabBar->setTabText(0, UIWizardNewCloudVM::tr("&Images"));
     656    m_pSourceTabBar->setTabText(1, UIWizardNewCloudVM::tr("&Boot Volumes"));
    657657
    658658    /* Adjust label widths: */
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