forked from enlightenment/enlightenment
bugfix: check shot filename for actual file extension, not just extension string
T684
This commit is contained in:
parent
a00b8354b5
commit
2ea6870f10
|
@ -221,7 +221,7 @@ _file_select_ok_cb(void *data __UNUSED__, E_Dialog *dia)
|
||||||
|
|
||||||
dia = fsel_dia;
|
dia = fsel_dia;
|
||||||
file = e_widget_fsel_selection_path_get(o_fsel);
|
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
|
e_util_dialog_show
|
||||||
(_("Error - Unknown format"),
|
(_("Error - Unknown format"),
|
||||||
|
|
Loading…
Reference in New Issue