From e53ee13f3cfaf0b8c1cc4e094587f3a0a633bdeb Mon Sep 17 00:00:00 2001 From: Stephen 'Okra' Houston Date: Wed, 3 May 2017 09:26:45 -0500 Subject: [PATCH] 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; }