forked from enlightenment/efl
elm-config: correct wrong "if" statement
If nothing is selected then nothing to disable. "If" statement did not work here until now. Test: 1. Run elementary_config from terminal. 2. Select Profile menu item (make no clicks on any item). 4. Close the app. 3. Verify the error log messages before to and following the patch. @fixed
This commit is contained in:
parent
6d0c8f4c82
commit
7309b85f27
|
@ -3376,7 +3376,7 @@ _profiles_list_unselect_cb(void *data EINA_UNUSED,
|
||||||
Evas_Object *obj,
|
Evas_Object *obj,
|
||||||
void *event_info EINA_UNUSED)
|
void *event_info EINA_UNUSED)
|
||||||
{
|
{
|
||||||
if (elm_list_selected_item_get(obj)) return;
|
if (!elm_list_selected_item_get(obj)) return;
|
||||||
elm_object_disabled_set(evas_object_data_get(obj, "prof_del_btn"),
|
elm_object_disabled_set(evas_object_data_get(obj, "prof_del_btn"),
|
||||||
EINA_TRUE);
|
EINA_TRUE);
|
||||||
elm_object_disabled_set(evas_object_data_get(obj, "prof_reset_btn"),
|
elm_object_disabled_set(evas_object_data_get(obj, "prof_reset_btn"),
|
||||||
|
|
Loading…
Reference in New Issue