VirtualBox

Changeset 84562 in vbox


Ignore:
Timestamp:
May 27, 2020 1:37:08 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Chooser pane: Do not show providers if there are no profiles to show.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp

    r84557 r84562  
    438438                continue;
    439439
     440            /* Acquire list of profiles: */
     441            const QVector<CCloudProfile> profiles = listCloudProfiles(comCloudProvider);
     442            if (profiles.isEmpty())
     443                continue;
     444
    440445            /* Add provider group node: */
    441446            UIChooserNodeGroup *pProviderNode =
     
    452457
    453458            /* Iterate through provider's profiles: */
    454             foreach (CCloudProfile comCloudProfile, listCloudProfiles(comCloudProvider))
     459            foreach (CCloudProfile comCloudProfile, profiles)
    455460            {
    456461                /* Skip if we have nothing to populate: */
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