VirtualBox

Changeset 91590 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 6, 2021 1:01:21 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9996: UIWizardImportApp: Remove excessive source ID stuff.

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  
    100100            /* Compose empty item, fill it's data: */
    101101            m_pSourceComboBox->addItem(QString());
    102             m_pSourceComboBox->setItemData(m_pSourceComboBox->count() - 1, comProvider.GetId(),        SourceData_ID);
    103102            m_pSourceComboBox->setItemData(m_pSourceComboBox->count() - 1, comProvider.GetName(),      SourceData_Name);
    104103            m_pSourceComboBox->setItemData(m_pSourceComboBox->count() - 1, comProvider.GetShortName(), SourceData_ShortName);
     
    134133    m_comCloudProvider = CCloudProvider();
    135134
    136     /* If provider chosen: */
    137     if (!sourceId().isNull())
     135    /* If source is cloud one & provider chosen: */
     136    if (isSourceCloudOne() && !source().isEmpty())
    138137    {
    139138        /* (Re)initialize Cloud Provider: */
    140         m_comCloudProvider = cloudProviderById(sourceId(), wizardImp());
     139        m_comCloudProvider = cloudProviderByShortName(source(), wizardImp());
    141140        if (m_comCloudProvider.isNotNull())
    142141        {
     
    330329        iIndex = m_pSourceComboBox->currentIndex();
    331330    return m_pSourceComboBox->itemData(iIndex, SourceData_IsItCloudFormat).toBool();
    332 }
    333 
    334 QUuid UIWizardImportAppPage1::sourceId() const
    335 {
    336     const int iIndex = m_pSourceComboBox->currentIndex();
    337     return m_pSourceComboBox->itemData(iIndex, SourceData_ID).toUuid();
    338331}
    339332
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic1.h

    r91589 r91590  
    4848enum
    4949{
    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
    5453};
    5554
     
    9291    bool isSourceCloudOne(int iIndex = -1) const;
    9392
    94     /** Returns source ID. */
    95     QUuid sourceId() const;
    9693    /** Returns profile name. */
    9794    QString profileName() const;
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