ryuan pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=09c6d1326d2604a608d10696781999e5d025f6c4

commit 09c6d1326d2604a608d10696781999e5d025f6c4
Author: Ryuan Choi <ryuan.c...@gmail.com>
Date:   Fri Feb 21 23:04:19 2014 +0900

    test_fileselector_entry: null check
    
    There are warning when toggled folder after pressing "api state" which 
clear icon.
---
 src/bin/test_fileselector_entry.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/test_fileselector_entry.c 
b/src/bin/test_fileselector_entry.c
index 8e41ac1..07d6cf0 100644
--- a/src/bin/test_fileselector_entry.c
+++ b/src/bin/test_fileselector_entry.c
@@ -121,12 +121,12 @@ _folder_only_toggle(void            *data,
    printf("Folder only flag set to: %s\n", value ? "false" : "true");
    if (!value)
      {
-        elm_icon_standard_set(ic, "folder");
+        if (ic) elm_icon_standard_set(ic, "folder");
         elm_object_text_set(fs_en, "Select a folder");
      }
    else
      {
-        elm_icon_standard_set(ic, "file");
+        if (ic) elm_icon_standard_set(ic, "file");
         elm_object_text_set(fs_en, "Select a file");
      }
 }

-- 


Reply via email to