discomfitor pushed a commit to branch enlightenment-0.21.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=6246da93b7bbf35437f5f1f29e9aac9627b740c6

commit 6246da93b7bbf35437f5f1f29e9aac9627b740c6
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Fri Aug 18 15:52:52 2017 -0400

    check imc exe existence before showing in imc dialog list
    
    don't show things which will definitely fail
    
    fix T1526
---
 src/modules/conf_intl/e_int_config_imc.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/modules/conf_intl/e_int_config_imc.c 
b/src/modules/conf_intl/e_int_config_imc.c
index c02d81f0c..45f77075b 100644
--- a/src/modules/conf_intl/e_int_config_imc.c
+++ b/src/modules/conf_intl/e_int_config_imc.c
@@ -347,6 +347,11 @@ _basic_create_widgets(E_Config_Dialog *cfd EINA_UNUSED, 
Evas *evas, E_Config_Dia
                     {
                        Efreet_Desktop *desktop;
 
+                       if (!ecore_file_exists(imc->e_im_setup_exec))
+                         {
+                            e_intl_input_method_config_free(imc);
+                            goto out;
+                         }
                        desktop = 
efreet_util_desktop_exec_find(imc->e_im_setup_exec);
                        if (desktop)
                          {
@@ -367,6 +372,7 @@ _basic_create_widgets(E_Config_Dialog *cfd EINA_UNUSED, 
Evas *evas, E_Config_Dia
                   eina_hash_add(cfdata->imc_basic_map, imc_path, imc);
                }
           }
+out:
         free(imc_path);
         imc_basic_list = eina_list_remove_list(imc_basic_list, imc_basic_list);
      }

-- 


Reply via email to