mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
lv_indev: check object delete after sending LV_EVENT_SHORT_CLICKED on group button release
This commit is contained in:
parent
75f42fde2f
commit
d691e72b40
@ -495,6 +495,7 @@ static void indev_keypad_proc(lv_indev_t * i, lv_indev_data_t * data)
|
|||||||
|
|
||||||
if(i->proc.long_pr_sent == 0) {
|
if(i->proc.long_pr_sent == 0) {
|
||||||
lv_event_send(focused, LV_EVENT_SHORT_CLICKED, NULL);
|
lv_event_send(focused, LV_EVENT_SHORT_CLICKED, NULL);
|
||||||
|
if(i->proc.reset_query) return; /*The object might be deleted*/
|
||||||
}
|
}
|
||||||
|
|
||||||
lv_event_send(focused, LV_EVENT_CLICKED, NULL);
|
lv_event_send(focused, LV_EVENT_CLICKED, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user