Mercurial > pidgin.yaz
diff src/rvous.c @ 1035:80a47e3b1bca
[gaim-migrate @ 1045]
thanks to bmiller for yet another patch ;)
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 31 Oct 2000 07:36:11 +0000 |
parents | 643a4d81c18a |
children | 56c7ceb986a8 |
line wrap: on
line diff
--- a/src/rvous.c Tue Oct 31 07:18:44 2000 +0000 +++ b/src/rvous.c Tue Oct 31 07:36:11 2000 +0000 @@ -216,6 +216,10 @@ GtkWidget *fw = NULL, *fbar = NULL, *label = NULL; GtkWidget *button = NULL, *pct = NULL; + if (file_is_dir(file, ft->window)) { + return; + } + if (!(ft->f = fopen(file,"w"))) { g_snprintf(buf, BUF_LONG / 2, _("Error writing file %s"), file); do_error_dialog(buf, _("Error")); @@ -486,6 +490,11 @@ struct stat st; struct tm *fortime; + if (file_is_dir (file, ft->window)) { + g_free(file); + return; + } + stat(file, &st); if (!(ft->f = fopen(file, "r"))) { g_snprintf(buf, BUF_LONG / 2, _("Error reading file %s"), file);