forked from enlightenment/efl
elm_calendar: Do not pass NULL to function.
Summary: T7076 legacy calendar inc/dec button has auto repeat feature. for that if user click the button very quickly, we delete internal timer than it will pass to function. to prevent this, need to check NULL pointer. Reviewers: devilhorns, Hermet Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11966
This commit is contained in:
parent
4b223b9720
commit
fc0281f32c
|
@ -971,8 +971,11 @@ _spin_value(void *data)
|
||||||
if (_update_data(data, sd->month_btn_clicked, sd->spin_speed))
|
if (_update_data(data, sd->month_btn_clicked, sd->spin_speed))
|
||||||
evas_object_smart_changed(data);
|
evas_object_smart_changed(data);
|
||||||
|
|
||||||
|
if (sd->spin_timer)
|
||||||
|
{
|
||||||
sd->interval = sd->interval / 1.05;
|
sd->interval = sd->interval / 1.05;
|
||||||
ecore_timer_interval_set(sd->spin_timer, sd->interval);
|
ecore_timer_interval_set(sd->spin_timer, sd->interval);
|
||||||
|
}
|
||||||
|
|
||||||
return ECORE_CALLBACK_RENEW;
|
return ECORE_CALLBACK_RENEW;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue