Changeset 91590 in vbox for trunk/src/VBox
- Timestamp:
- Oct 6, 2021 1:01:21 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp
r91589 r91590 100 100 /* Compose empty item, fill it's data: */ 101 101 m_pSourceComboBox->addItem(QString()); 102 m_pSourceComboBox->setItemData(m_pSourceComboBox->count() - 1, comProvider.GetId(), SourceData_ID);103 102 m_pSourceComboBox->setItemData(m_pSourceComboBox->count() - 1, comProvider.GetName(), SourceData_Name); 104 103 m_pSourceComboBox->setItemData(m_pSourceComboBox->count() - 1, comProvider.GetShortName(), SourceData_ShortName); … … 134 133 m_comCloudProvider = CCloudProvider(); 135 134 136 /* If provider chosen: */137 if ( !sourceId().isNull())135 /* If source is cloud one & provider chosen: */ 136 if (isSourceCloudOne() && !source().isEmpty()) 138 137 { 139 138 /* (Re)initialize Cloud Provider: */ 140 m_comCloudProvider = cloudProviderBy Id(sourceId(), wizardImp());139 m_comCloudProvider = cloudProviderByShortName(source(), wizardImp()); 141 140 if (m_comCloudProvider.isNotNull()) 142 141 { … … 330 329 iIndex = m_pSourceComboBox->currentIndex(); 331 330 return m_pSourceComboBox->itemData(iIndex, SourceData_IsItCloudFormat).toBool(); 332 }333 334 QUuid UIWizardImportAppPage1::sourceId() const335 {336 const int iIndex = m_pSourceComboBox->currentIndex();337 return m_pSourceComboBox->itemData(iIndex, SourceData_ID).toUuid();338 331 } 339 332 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic1.h
r91589 r91590 48 48 enum 49 49 { 50 SourceData_ID = Qt::UserRole + 1, 51 SourceData_Name = Qt::UserRole + 2, 52 SourceData_ShortName = Qt::UserRole + 3, 53 SourceData_IsItCloudFormat = Qt::UserRole + 4 50 SourceData_Name = Qt::UserRole + 1, 51 SourceData_ShortName = Qt::UserRole + 2, 52 SourceData_IsItCloudFormat = Qt::UserRole + 3 54 53 }; 55 54 … … 92 91 bool isSourceCloudOne(int iIndex = -1) const; 93 92 94 /** Returns source ID. */95 QUuid sourceId() const;96 93 /** Returns profile name. */ 97 94 QString profileName() const;
Note:
See TracChangeset
for help on using the changeset viewer.