rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=43f5206bf39a44e5feddb86eae8311ca34341582

commit 43f5206bf39a44e5feddb86eae8311ca34341582
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Fri Feb 19 11:24:21 2016 +0200

    popup: fileselector helper - dismiss the helper on cancel
    
    Change-Id: Ife91d8f7e552ec51f3d131dad898be8b6ba4bff4
---
 src/bin/ui/popup.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/bin/ui/popup.c b/src/bin/ui/popup.c
index a1e14eb..d9b0066 100644
--- a/src/bin/ui/popup.c
+++ b/src/bin/ui/popup.c
@@ -231,13 +231,14 @@ _helper_dismiss(void *data __UNUSED__,
 static void
 _done(void *data __UNUSED__,
       Evas_Object *obj,
-      void *event_info __UNUSED__)
+      void *event_info)
 {
    Eina_List *selected_paths = NULL;
    Eina_Stringshare *selected;
-   Eina_Bool res = true;
+   Eina_Bool res = false;
 
-   if (dismiss_func)
+   if (!event_info) res = true;
+   if (!res && dismiss_func)
      {
         if (elm_fileselector_multi_select_get(fs))
           selected_paths = (Eina_List 
*)elm_fileselector_selected_paths_get(fs);

-- 


Reply via email to