test_fileselector_entry: null check

There are warning when toggled folder after pressing "api state" which clear icon.
This commit is contained in:
Ryuan Choi 2014-02-21 23:04:19 +09:00
parent f863057d21
commit 473b183ebf
1 changed files with 2 additions and 2 deletions

View File

@ -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");
}
}