mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +08:00
Using the same optimizations as in category tree view (Ref T472)
* isEmpty * digest signal
This commit is contained in:
committed by
Mat Sutcliffe
parent
fe05c2287b
commit
c123c8bbca
@@ -47,11 +47,8 @@ namespace BlackGui
|
||||
|
||||
void CAtcStationTreeModel::updateContainer(const CAtcStationList &stations)
|
||||
{
|
||||
if (stations.isEmpty())
|
||||
{
|
||||
CAtcStationTreeModel::clear();
|
||||
return;
|
||||
}
|
||||
this->clear();
|
||||
if (stations.isEmpty()) { return; }
|
||||
|
||||
m_stations = stations.sortedByAtcSuffixSortOrderAndDistance();
|
||||
m_stationsBySuffix = m_stations.splitPerSuffix();
|
||||
|
||||
Reference in New Issue
Block a user