From 27e9702101cb4df2cc115d4e90223eedfe69d009 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Thu, 17 May 2018 14:30:11 +0200 Subject: [PATCH] Switch to "aircraft model view" when loading models --- src/blackgui/components/mappingcomponent.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/blackgui/components/mappingcomponent.cpp b/src/blackgui/components/mappingcomponent.cpp index 4dc98596f..2892128ba 100644 --- a/src/blackgui/components/mappingcomponent.cpp +++ b/src/blackgui/components/mappingcomponent.cpp @@ -399,8 +399,9 @@ namespace BlackGui void CMappingComponent::onModelsUpdateRequested() { Q_ASSERT_X(sGui, Q_FUNC_INFO, "Need sGui"); - const CAircraftModelList ml(sGui->getIContextSimulator()->getModelSet()); - ui->tvp_AircraftModels->updateContainerMaybeAsync(ml); + const CAircraftModelList modelSet(sGui->getIContextSimulator()->getModelSet()); + ui->tvp_AircraftModels->updateContainerMaybeAsync(modelSet); + ui->tw_SpecializedViews->setCurrentIndex(TabAircraftModels); } void CMappingComponent::onRemoteAircraftModelChanged(const CSimulatedAircraft &aircraft, const CIdentifier &originator)