VirtualBox

Changeset 74929 in vbox


Ignore:
Timestamp:
Oct 18, 2018 5:23:49 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
125942
Message:

FE/Qt: bugref:9230: Cloud Profile Manager: Regression fix for r125937.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/cloud/UICloudProfileManager.cpp

    r74928 r74929  
    189189    /* Is can be that there is provider item, not profile item currently selected.
    190190     * In such case we are not applying parameters, we are creating new one profile. */
    191     UIItemCloudProvider *pMaybeProviderItem = static_cast<UIItemCloudProvider*>(m_pTreeWidget->currentItem());
     191    QTreeWidgetItem *pItem = m_pTreeWidget->currentItem();
     192    UIItemCloudProvider *pMaybeProviderItem = pItem && pItem->data(0, Data_ItemType).value<CloudItemType>() == CloudItemType_Provider
     193                                            ? static_cast<UIItemCloudProvider*>(pItem) : 0;
    192194    if (pMaybeProviderItem)
    193195        return sltAddCloudProfile();
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