Ephoto: make sure the monitor callback for delete is on the file we are working on.

This commit is contained in:
Stephen 'Okra' Houston 2017-05-03 09:26:45 -05:00
parent 3480bb44b3
commit e53ee13f3c
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -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;
}