pop error dialog when efm fails to resolve a path instead of crashing

SVN revision: 74875
This commit is contained in:
Mike Blumenkrantz 2012-08-04 08:46:57 +00:00
parent cba00ee07f
commit 735b02c419
1 changed files with 7 additions and 0 deletions

View File

@ -995,6 +995,13 @@ e_fm2_path_set(Evas_Object *obj, const char *dev, const char *path)
}
real_path = _e_fm2_dev_path_map(sd, dev, path);
if (!real_path)
{
CRI("THIS IS A BUG!!!! HELP! WE'RE SINKING!");
e_util_dialog_internal(_("BUG!"), _("Congratulations, you found a bug!<br>"
"Please submit a report so we can fix it!"));
return;
}
/* If the path doesn't exist, popup a dialog */
if (dev && strncmp(dev, "removable:", 10)
&& !ecore_file_exists(real_path))