Skip to content

Commit

Permalink
[FlightPlanEditor] Check if current block is valid.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien-B authored and Fabien-B committed May 30, 2024
1 parent 4444304 commit d68609b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/widgets/flightplaneditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,9 @@ void FlightPlanEditor::onItemDoubleClicked(QTreeWidgetItem *item, int column) {

void FlightPlanEditor::onNavStatus() {
auto last = blocks[last_block];
if(last == nullptr) {
return;
}

applyRecursive(last, [=](QTreeWidgetItem* item){
for(int i=0; i<item->columnCount(); ++i) {
Expand Down

0 comments on commit d68609b

Please sign in to comment.