From 421431f1120f29dd4eb7a966c61340d3a559ced2 Mon Sep 17 00:00:00 2001 From: Alexander Barthel Date: Sun, 31 Mar 2024 14:42:45 +0200 Subject: [PATCH] Omitting departure/destination in flight plan table for one waypoint plans --- src/route/routecontroller.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/route/routecontroller.cpp b/src/route/routecontroller.cpp index 2217aaa08..5d185b56c 100644 --- a/src/route/routecontroller.cpp +++ b/src/route/routecontroller.cpp @@ -4881,9 +4881,7 @@ void RouteController::updateTableModelAndErrors() itemRow[rcol::REGION] = new QStandardItem(leg.getRegion()); itemRow[rcol::NAME] = new QStandardItem(leg.getName()); - if(route.getSizeWithoutAlternates() == 1) - itemRow[rcol::PROCEDURE] = new QStandardItem(tr("Airport")); - else + if(route.getSizeWithoutAlternates() > 1) { if(row == route.getDestinationAirportLegIndex() && !route.getDestinationAirportLeg().isAnyProcedure()) itemRow[rcol::PROCEDURE] = new QStandardItem(tr("Destination"));