rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=acd5cbf38e03a895926ac192b44205171e071816
commit acd5cbf38e03a895926ac192b44205171e071816 Author: Vitalii Vorobiov <[email protected]> Date: Fri Oct 7 17:35:57 2016 +0300 editor_program: do not send update signals on program delete Fixes T4583 --- src/bin/editor/editor_macro.h | 7 +++++-- src/bin/editor/editor_program.c | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/bin/editor/editor_macro.h b/src/bin/editor/editor_macro.h index bc0277d..44e2f4f 100644 --- a/src/bin/editor/editor_macro.h +++ b/src/bin/editor/editor_macro.h @@ -882,8 +882,11 @@ editor_program_## FUNC ##_set(Evas_Object *edit_object, Change *change, Eina_Boo { \ CRIT_ON_FAIL(edje_edit_program_## REAL_FUNC ##_set(edit_object, program, new_val)); \ _editor_project_changed(); \ - if (!_editor_signals_blocked) evas_object_smart_callback_call(ap.win, SIGNAL_EDITOR_RM_ATTRIBUTE_CHANGED, &send); \ - evas_object_smart_callback_call(ap.win, SIGNAL_EDITOR_PROGRAM_UPDATE, (void *)program); \ + if (!_editor_signals_blocked) \ + { \ + evas_object_smart_callback_call(ap.win, SIGNAL_EDITOR_RM_ATTRIBUTE_CHANGED, &send); \ + evas_object_smart_callback_call(ap.win, SIGNAL_EDITOR_PROGRAM_UPDATE, (void *)program); \ + } \ } \ eina_stringshare_del(send.program_name); \ eina_stringshare_del(send.old_value); \ diff --git a/src/bin/editor/editor_program.c b/src/bin/editor/editor_program.c index edd6368..f9aafb7 100644 --- a/src/bin/editor/editor_program.c +++ b/src/bin/editor/editor_program.c @@ -569,8 +569,11 @@ editor_program_emit_signal_set(Evas_Object *edit_object, Change *change, Eina_Bo if (!edje_edit_program_emit_source_get(edit_object, program)) CRIT_ON_FAIL(edje_edit_program_state2_set(edit_object, program, "")); _editor_project_changed(); - if (!_editor_signals_blocked) evas_object_smart_callback_call(ap.win, SIGNAL_EDITOR_RM_ATTRIBUTE_CHANGED, &send); - evas_object_smart_callback_call(ap.win, SIGNAL_EDITOR_PROGRAM_UPDATE, (void *)program); + if (!_editor_signals_blocked) + { + evas_object_smart_callback_call(ap.win, SIGNAL_EDITOR_RM_ATTRIBUTE_CHANGED, &send); + evas_object_smart_callback_call(ap.win, SIGNAL_EDITOR_PROGRAM_UPDATE, (void *)program); + } } return true; } --
