aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen 'Okra' Houston <smhouston88@gmail.com>2017-05-03 09:26:45 -0500
committerStephen 'Okra' Houston <smhouston88@gmail.com>2017-05-03 09:26:45 -0500
commite53ee13f3cfaf0b8c1cc4e094587f3a0a633bdeb (patch)
tree95d19eda0090da34023b8d97f2b32f49dcae9aea
parentEphoto: Factor out common code, use "start" for Windows based devices instead... (diff)
downloadephoto-e53ee13f3cfaf0b8c1cc4e094587f3a0a633bdeb.tar.gz
Ephoto: make sure the monitor callback for delete is on the file we are working on.
-rw-r--r--src/bin/ephoto_main.c1
-rw-r--r--src/bin/ephoto_single_browser.c3
2 files changed, 3 insertions, 1 deletions
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;
}