fix(color): potential crash when changing screen layout (#5725)

This commit is contained in:
philmoz
2024-12-20 10:59:27 +10:00
committed by GitHub
parent 91a961f7fb
commit d1936d0585
+4 -2
View File
@@ -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);
}
}
}