rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=219722070026f42f40880868c483c1545b9bc25e

commit 219722070026f42f40880868c483c1545b9bc25e
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Wed Sep 14 18:38:33 2016 +0300

    property_group: drop filter state when filter part is changed
    
    the main reason is - we dont know if changed new part have that selected 
filter
    state or not. also its important to cleanup when part is getting unset. so 
state
    should be unset as well
    
    @fix
---
 src/bin/ui/property/property_group.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/ui/property/property_group.c 
b/src/bin/ui/property/property_group.c
index 4743220..71a57e5 100644
--- a/src/bin/ui/property/property_group.c
+++ b/src/bin/ui/property/property_group.c
@@ -4148,6 +4148,7 @@ _change_cb(Property_Attribute *pa, Property_Action 
*action)
       case ATTRIBUTE_PROGRAM_FILTER_PART:
          assert(cb_item_combo != NULL);
          str_val1 = (cb_item_combo->index != 0) ? 
eina_stringshare_add(cb_item_combo->data) : NULL;
+         CRIT_ON_FAIL(editor_program_filter_state_set(EDIT_OBJ, 
CHANGE_NO_MERGE, PROGRAM_ARGS, NULL));
          CRIT_ON_FAIL(editor_program_filter_part_set(EDIT_OBJ, 
CHANGE_NO_MERGE, PROGRAM_ARGS, str_val1));
          eina_stringshare_del(group_pd.history.new.str_val1);
          group_pd.history.new.str_val1 = str_val1;

-- 


Reply via email to