Skip to content

Commit

Permalink
Omitting departure/destination in flight plan table for one waypoint …
Browse files Browse the repository at this point in the history
…plans
  • Loading branch information
albar965 committed Mar 31, 2024
1 parent 918ea82 commit 421431f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/route/routecontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 421431f

Please sign in to comment.