okra pushed a commit to branch master.

http://git.enlightenment.org/apps/ephoto.git/commit/?id=4ca10ed862a7f664f9fff50084b8b957221c2c04

commit 4ca10ed862a7f664f9fff50084b8b957221c2c04
Author: Stephen okra Houston <smhousto...@gmail.com>
Date:   Tue Aug 23 09:53:57 2016 -0500

    Ephoto: Don't switch directory when genlist is clicked but an item is not 
(i.e.. scrolling)
---
 src/bin/ephoto_directory_browser.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/src/bin/ephoto_directory_browser.c 
b/src/bin/ephoto_directory_browser.c
index 1448562..5d96757 100644
--- a/src/bin/ephoto_directory_browser.c
+++ b/src/bin/ephoto_directory_browser.c
@@ -604,24 +604,13 @@ _fsel_mouse_up_cb(void *data, Evas *e EINA_UNUSED,
                _on_list_selected(db, NULL, item);
           }
      }
-   else if (!item)
-     {
-        Elm_Object_Item *it;
-
-        it = elm_genlist_selected_item_get(db->fsel);
-        if (it)
-          elm_genlist_item_selected_set(it, EINA_FALSE);
-        ephoto_directory_set(db->ephoto, db->ephoto->top_directory, NULL, 0, 
1);
-        ephoto_title_set(db->ephoto, db->ephoto->top_directory);
-     }
-
    if (info->button != 3)
       return;
 
    snprintf(trash, PATH_MAX, "%s/.config/ephoto/trash", getenv("HOME"));
 
    if (item)
-      elm_genlist_item_selected_set(item, EINA_TRUE);
+     elm_genlist_item_selected_set(item, EINA_TRUE);
 
    db->ephoto->menu_blocking = EINA_TRUE;
 

-- 


Reply via email to