fileselector: clarify the condition statement for checking ok button

Summary:
elm_fileselector_buttons_ok_cancel_set() API checks the existence of
ok button before adding it.
This patch makes condition statement more intuitive.

Reviewers: cedric, bu5hm4n

Differential Revision: https://phab.enlightenment.org/D3770
This commit is contained in:
Jee-Yong Um 2016-03-07 11:26:15 +01:00 committed by Marcel Hollerbach
parent 9e3ddc1aff
commit bbba3c24b5
1 changed files with 1 additions and 3 deletions

View File

@ -1712,12 +1712,10 @@ EOLIAN static void
_elm_fileselector_buttons_ok_cancel_set(Eo *obj, Elm_Fileselector_Data *sd, Eina_Bool visible)
{
Evas_Object *bt;
Eina_Bool bt_exists = EINA_FALSE;
visible = !!visible;
bt_exists = !!sd->ok_button;
if (!(visible ^ bt_exists)) return;
if (!visible == !sd->ok_button) return;
if (visible)
{