bugfix: check shot filename for actual file extension, not just extension string

T684
This commit is contained in:
Mike Blumenkrantz 2013-12-24 20:34:32 -05:00
parent a00b8354b5
commit 2ea6870f10
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ _file_select_ok_cb(void *data __UNUSED__, E_Dialog *dia)
dia = fsel_dia;
file = e_widget_fsel_selection_path_get(o_fsel);
if ((!file) || (!file[0]) || ((!eina_str_has_extension(file, "jpg")) && (!eina_str_has_extension(file, "png"))))
if ((!file) || (!file[0]) || ((!eina_str_has_extension(file, ".jpg")) && (!eina_str_has_extension(file, ".png"))))
{
e_util_dialog_show
(_("Error - Unknown format"),