diff options
author | Michal Skorupinski <m.skorupinsk@samsung.com> | 2018-12-12 20:49:43 +0100 |
---|---|---|
committer | Michal Skorupinski <m.skorupinsk@samsung.com> | 2019-01-17 15:15:51 +0100 |
commit | c04e1769021d9b52caebb42d67cf6129d3e3f042 (patch) | |
tree | f1f626661b16a6b9f3cda869ef6e09e8f8580faf | |
parent | ec1443154c262d4873203bfe7b591140fb8ab801 (diff) | |
download | gear-racing-controller-c04e1769021d9b52caebb42d67cf6129d3e3f042.tar.gz gear-racing-controller-c04e1769021d9b52caebb42d67cf6129d3e3f042.tar.bz2 gear-racing-controller-c04e1769021d9b52caebb42d67cf6129d3e3f042.zip |
Segfault when using bezel in the car list fixed
Change-Id: Ie5945d9d4cd2e93a167fe7f317272813b193bd4b
Signed-off-by: Michal Skorupinski <m.skorupinsk@samsung.com>
-rw-r--r-- | src/model/model_hw.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/model/model_hw.c b/src/model/model_hw.c index 54f4361..d0ecb31 100644 --- a/src/model/model_hw.c +++ b/src/model/model_hw.c @@ -53,6 +53,10 @@ static Eina_Bool _rotary_cb(void *data, Eext_Rotary_Event_Info *info) { static s_model_hw_cb_data cb_data = { 0, }; + if (!s_info.hw_update_cb) { + return true; + } + if (s_info.rotary_deactivated) { return true; } |