Skip to content

Commit

Permalink
fix(color): potential crash when changing screen layout (#5725)
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz authored Dec 20, 2024
1 parent 91a961f commit d1936d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions radio/src/gui/colorlcd/libui/table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,9 @@ void TableField::deleteLater(bool detach, bool trash)
if (!deleted())
if (autoedit) {
lv_group_t* g = (lv_group_t*)lv_obj_get_group(lvobj);
lv_group_set_focus_cb(g, nullptr);
lv_group_set_editing(g, false);
if (g) {
lv_group_set_focus_cb(g, nullptr);
lv_group_set_editing(g, false);
}
}
}

0 comments on commit d1936d0

Please sign in to comment.