okra pushed a commit to branch master.

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

commit e53ee13f3cfaf0b8c1cc4e094587f3a0a633bdeb
Author: Stephen 'Okra' Houston <[email protected]>
Date:   Wed May 3 09:26:45 2017 -0500

    Ephoto: make sure the monitor callback for delete is on the file we are 
working on.
---
 src/bin/ephoto_main.c           | 1 +
 src/bin/ephoto_single_browser.c | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/bin/ephoto_main.c b/src/bin/ephoto_main.c
index fba4cda..2b597b2 100644
--- a/src/bin/ephoto_main.c
+++ b/src/bin/ephoto_main.c
@@ -498,6 +498,7 @@ ephoto_window_add(const char *path)
    ephoto->infolabel = elm_label_add(ephoto->statusbar);
    elm_object_style_set(ephoto->infolabel, "info");
    elm_label_line_wrap_set(ephoto->infolabel, ELM_WRAP_MIXED);
+   elm_label_ellipsis_set(ephoto->infolabel, EINA_TRUE);
    elm_object_text_set(ephoto->infolabel, _("Information"));
    EPHOTO_EXPAND(ephoto->infolabel);
    EPHOTO_FILL(ephoto->infolabel);
diff --git a/src/bin/ephoto_single_browser.c b/src/bin/ephoto_single_browser.c
index f8dc3b1..481eca3 100644
--- a/src/bin/ephoto_single_browser.c
+++ b/src/bin/ephoto_single_browser.c
@@ -338,7 +338,8 @@ _monitor_cb(void *data, int type,
      }
    else if (type == EIO_MONITOR_FILE_DELETED)
      {
-        _ephoto_main_back(sb, NULL, NULL);
+        if (!ecore_file_exists(sb->entry->path))
+          _ephoto_main_back(sb, NULL, NULL);
      }      
    return ECORE_CALLBACK_PASS_ON;
 }

-- 


Reply via email to