@@ -702,8 +702,8 @@ bool RouteController::appendFlightplan(const QString& filename)
702
702
route.updateAll ();
703
703
updateAirwaysAndAltitude ();
704
704
705
- updateTableModel ();
706
705
route.updateActiveLegAndPos (true /* force update */ );
706
+ updateTableModel ();
707
707
708
708
postChange (undoCommand);
709
709
NavApp::updateWindowTitle ();
@@ -1118,8 +1118,8 @@ bool RouteController::calculateRouteInternal(RouteFinder *routeFinder, atools::f
1118
1118
route.updateAll ();
1119
1119
updateAirwaysAndAltitude (!useSetAltitude /* adjustRouteAltitude */ );
1120
1120
1121
- updateTableModel ();
1122
1121
route.updateActiveLegAndPos (true /* force update */ );
1122
+ updateTableModel ();
1123
1123
1124
1124
postChange (undoCommand);
1125
1125
NavApp::updateWindowTitle ();
@@ -1252,8 +1252,8 @@ void RouteController::reverseRoute()
1252
1252
updateAirwaysAndAltitude ();
1253
1253
updateStartPositionBestRunway (true /* force */ , false /* undo */ );
1254
1254
1255
- updateTableModel ();
1256
1255
route.updateActiveLegAndPos (true /* force update */ );
1256
+ updateTableModel ();
1257
1257
1258
1258
postChange (undoCommand);
1259
1259
NavApp::updateWindowTitle ();
@@ -1336,8 +1336,8 @@ void RouteController::postDatabaseLoad()
1336
1336
flightplan.getDepartureParkingName ().isEmpty ())
1337
1337
updateStartPositionBestRunway (false , true );
1338
1338
1339
- updateTableModel ();
1340
1339
route.updateActiveLegAndPos (true /* force update */ );
1340
+ updateTableModel ();
1341
1341
1342
1342
NavApp::updateWindowTitle ();
1343
1343
routeAltDelayTimer.start (ROUTE_ALT_CHANGE_DELAY_MS);
@@ -1882,6 +1882,7 @@ void RouteController::moveSelectedLegsInternal(MoveDirection direction)
1882
1882
// Get type and cruise altitude from widgets
1883
1883
updateFlightplanFromWidgets ();
1884
1884
1885
+ route.updateActiveLegAndPos (true /* force update */ );
1885
1886
updateTableModel ();
1886
1887
1887
1888
// Restore current position at new moved position
@@ -1890,7 +1891,6 @@ void RouteController::moveSelectedLegsInternal(MoveDirection direction)
1890
1891
select (rows, direction);
1891
1892
1892
1893
updateMoveAndDeleteActions ();
1893
- route.updateActiveLegAndPos (true /* force update */ );
1894
1894
1895
1895
postChange (undoCommand);
1896
1896
NavApp::updateWindowTitle ();
@@ -1947,12 +1947,12 @@ void RouteController::deleteSelectedLegs()
1947
1947
// Get type and cruise altitude from widgets
1948
1948
updateFlightplanFromWidgets ();
1949
1949
1950
+ route.updateActiveLegAndPos (true /* force update */ );
1950
1951
updateTableModel ();
1951
1952
1952
1953
// Update current position at the beginning of the former selection
1953
1954
view->setCurrentIndex (model->index (firstRow, 0 ));
1954
1955
updateMoveAndDeleteActions ();
1955
- route.updateActiveLegAndPos (true /* force update */ );
1956
1956
1957
1957
postChange (undoCommand);
1958
1958
NavApp::updateWindowTitle ();
@@ -2083,8 +2083,8 @@ void RouteController::routeSetDeparture(map::MapAirport airport)
2083
2083
// Get type and cruise altitude from widgets
2084
2084
updateFlightplanFromWidgets ();
2085
2085
2086
- updateTableModel ();
2087
2086
route.updateActiveLegAndPos (true /* force update */ );
2087
+ updateTableModel ();
2088
2088
2089
2089
postChange (undoCommand);
2090
2090
NavApp::updateWindowTitle ();
@@ -2135,8 +2135,8 @@ void RouteController::routeSetDestination(map::MapAirport airport)
2135
2135
// Get type and cruise altitude from widgets
2136
2136
updateFlightplanFromWidgets ();
2137
2137
2138
- updateTableModel ();
2139
2138
route.updateActiveLegAndPos (true /* force update */ );
2139
+ updateTableModel ();
2140
2140
2141
2141
postChange (undoCommand);
2142
2142
NavApp::updateWindowTitle ();
@@ -2223,8 +2223,8 @@ void RouteController::routeAttachProcedure(const proc::MapProcedureLegs& legs)
2223
2223
// Get type and cruise altitude from widgets
2224
2224
updateFlightplanFromWidgets ();
2225
2225
2226
- updateTableModel ();
2227
2226
route.updateActiveLegAndPos (true /* force update */ );
2227
+ updateTableModel ();
2228
2228
2229
2229
postChange (undoCommand);
2230
2230
NavApp::updateWindowTitle ();
@@ -2280,8 +2280,8 @@ void RouteController::routeAddInternal(const FlightplanEntry& entry, int insertI
2280
2280
// Get type and cruise altitude from widgets
2281
2281
updateFlightplanFromWidgets ();
2282
2282
2283
- updateTableModel ();
2284
2283
route.updateActiveLegAndPos (true /* force update */ );
2284
+ updateTableModel ();
2285
2285
2286
2286
postChange (undoCommand);
2287
2287
NavApp::updateWindowTitle ();
@@ -2395,8 +2395,8 @@ void RouteController::routeReplace(int id, atools::geo::Pos userPos, map::MapObj
2395
2395
// Get type and cruise altitude from widgets
2396
2396
updateFlightplanFromWidgets ();
2397
2397
2398
- updateTableModel ();
2399
2398
route.updateActiveLegAndPos (true /* force update */ );
2399
+ updateTableModel ();
2400
2400
2401
2401
postChange (undoCommand);
2402
2402
NavApp::updateWindowTitle ();
0 commit comments