VirtualBox

Changeset 35748 in vbox


Ignore:
Timestamp:
Jan 28, 2011 7:15:04 AM (14 years ago)
Author:
vboxsync
Message:

FE/Qt: 5439: Host-only interface creation issues: Interface list chooses newly created interface as current.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings/global
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.cpp

    r35702 r35748  
    434434            appendCacheItem(iface);
    435435            /* Append list with new item: */
    436             appendListItem(m_cache.m_items.last());
     436            appendListItem(m_cache.m_items.last(), true);
    437437        }
    438438        else
     
    583583}
    584584
    585 void UIGlobalSettingsNetwork::appendListItem(const UIHostNetworkData &data)
     585void UIGlobalSettingsNetwork::appendListItem(const UIHostNetworkData &data, bool fChooseItem)
    586586{
    587587    /* Add new item to the list: */
     
    589589    pItem->fetchNetworkData(data);
    590590    m_pInterfacesTree->addTopLevelItem(pItem);
     591    /* And choose it as current if necessary: */
     592    if (fChooseItem)
     593        m_pInterfacesTree->setCurrentItem(pItem);
    591594}
    592595
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.h

    r35548 r35748  
    187187    void appendCacheItem(const CHostNetworkInterface &iface);
    188188    void removeCacheItem(const QString &strInterfaceName);
    189     void appendListItem(const UIHostNetworkData &data);
     189    void appendListItem(const UIHostNetworkData &data, bool fChooseItem = false);
    190190    void removeListItem(UIHostInterfaceItem *pItem);
    191191
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