diff options
Diffstat (limited to 'src/tk/radio.c')
-rw-r--r-- | src/tk/radio.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tk/radio.c b/src/tk/radio.c index 71c9486..27f7d37 100644 --- a/src/tk/radio.c +++ b/src/tk/radio.c @@ -53,6 +53,9 @@ _mftk_radio_state_change(void *user_data, int state) mftk_check_set_state(rs->r->children[rs->r->state], SDL_FALSE); /* Set and announce new state */ rs->r->state = rs->state; + if (rs->r->action == NULL) { + return 0; + } return rs->r->action(rs->r->user_data, rs->r->state); } } |