VirtualBox

Ignore:
Timestamp:
Feb 6, 2017 3:11:19 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: Global properties: Network page: Keep proper sorting order for NAT and Host-only networks.

File:
1 edited

Legend:

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

    r65602 r65628  
    539539    foreach (const UIDataNetworkNAT &network, m_cache.m_networksNAT)
    540540        createTreeItemNetworkNAT(network);
     541    m_pTreeNetworkNAT->sortByColumn(1, Qt::AscendingOrder);
    541542    m_pTreeNetworkNAT->setCurrentItem(m_pTreeNetworkNAT->topLevelItem(0));
    542543    sltHandleCurrentItemChangeNetworkNAT();
     
    545546    foreach (const UIDataNetworkHost &network, m_cache.m_networksHost)
    546547        createTreeItemNetworkHost(network);
     548    m_pTreeNetworkHost->sortByColumn(0, Qt::AscendingOrder);
    547549    m_pTreeNetworkHost->setCurrentItem(m_pTreeNetworkHost->topLevelItem(0));
    548550    sltHandleCurrentItemChangeNetworkHost();
     
    743745    /* Update tree: */
    744746    createTreeItemNetworkNAT(generateDataNetworkNAT(network), true);
     747    m_pTreeNetworkNAT->sortByColumn(1, Qt::AscendingOrder);
    745748}
    746749
     
    833836    /* Update tree: */
    834837    createTreeItemNetworkHost(generateDataNetworkHost(iface), true);
     838    m_pTreeNetworkHost->sortByColumn(0, Qt::AscendingOrder);
    835839}
    836840
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