Changeset 35748 in vbox
- Timestamp:
- Jan 28, 2011 7:15:04 AM (14 years ago)
- 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 434 434 appendCacheItem(iface); 435 435 /* Append list with new item: */ 436 appendListItem(m_cache.m_items.last() );436 appendListItem(m_cache.m_items.last(), true); 437 437 } 438 438 else … … 583 583 } 584 584 585 void UIGlobalSettingsNetwork::appendListItem(const UIHostNetworkData &data )585 void UIGlobalSettingsNetwork::appendListItem(const UIHostNetworkData &data, bool fChooseItem) 586 586 { 587 587 /* Add new item to the list: */ … … 589 589 pItem->fetchNetworkData(data); 590 590 m_pInterfacesTree->addTopLevelItem(pItem); 591 /* And choose it as current if necessary: */ 592 if (fChooseItem) 593 m_pInterfacesTree->setCurrentItem(pItem); 591 594 } 592 595 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.h
r35548 r35748 187 187 void appendCacheItem(const CHostNetworkInterface &iface); 188 188 void removeCacheItem(const QString &strInterfaceName); 189 void appendListItem(const UIHostNetworkData &data );189 void appendListItem(const UIHostNetworkData &data, bool fChooseItem = false); 190 190 void removeListItem(UIHostInterfaceItem *pItem); 191 191
Note:
See TracChangeset
for help on using the changeset viewer.