forked from enlightenment/efl
elementary/win - prevent to add the timer multiple times.
This commit is contained in:
parent
6ead754e7e
commit
7f7cc5ad39
|
@ -519,7 +519,9 @@ _shot_handle(Elm_Win_Smart_Data *sd)
|
|||
{
|
||||
if (!sd->shot.info) return;
|
||||
|
||||
sd->shot.timer = ecore_timer_add(_shot_delay_get(sd), _shot_delay, sd->obj);
|
||||
if (!sd->shot.timer)
|
||||
sd->shot.timer = ecore_timer_add(_shot_delay_get(sd), _shot_delay,
|
||||
sd->obj);
|
||||
}
|
||||
|
||||
/* elm-win specific associate, does the trap while ecore_evas_object_associate()
|
||||
|
|
Loading…
Reference in New Issue