summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJee-Yong Um <jc9.um@samsung.com>2016-03-07 11:26:15 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2016-03-07 11:26:15 +0100
commit1393440bda42090c9fe5b1080bb73c8e52e2be96 (patch)
tree4ca5678ceb9a289b1456bc20c53a354e999d60ef
parent8e031a13147c481f738494184f75be23ad0e0d17 (diff)
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
-rw-r--r--src/lib/elc_fileselector.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/elc_fileselector.c b/src/lib/elc_fileselector.c
index 5dd263c59..36680ec87 100644
--- a/src/lib/elc_fileselector.c
+++ b/src/lib/elc_fileselector.c
@@ -1712,12 +1712,10 @@ EOLIAN static void
1712_elm_fileselector_buttons_ok_cancel_set(Eo *obj, Elm_Fileselector_Data *sd, Eina_Bool visible) 1712_elm_fileselector_buttons_ok_cancel_set(Eo *obj, Elm_Fileselector_Data *sd, Eina_Bool visible)
1713{ 1713{
1714 Evas_Object *bt; 1714 Evas_Object *bt;
1715 Eina_Bool bt_exists = EINA_FALSE;
1716 1715
1717 visible = !!visible; 1716 visible = !!visible;
1718 bt_exists = !!sd->ok_button;
1719 1717
1720 if (!(visible ^ bt_exists)) return; 1718 if (!visible == !sd->ok_button) return;
1721 1719
1722 if (visible) 1720 if (visible)
1723 { 1721 {