Mercurial > pidgin.yaz
changeset 4923:e96261d0dba8
[gaim-migrate @ 5257]
If the system log doesn't exist, just show empty system log
window, rather than error message
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Mon, 31 Mar 2003 19:16:31 +0000 |
parents | b15e2e8343b0 |
children | cd6415033718 |
files | src/dialogs.c |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dialogs.c Mon Mar 31 17:40:13 2003 +0000 +++ b/src/dialogs.c Mon Mar 31 19:16:31 2003 +0000 @@ -3620,8 +3620,13 @@ g_snprintf(filename, 256, "%s" G_DIR_SEPARATOR_S "logs" G_DIR_SEPARATOR_S "system", tmp); } if ((fp = fopen(filename, "r")) == NULL) { - g_snprintf(buf, BUF_LONG, _("Couldn't open log file %s."), filename); - do_error_dialog(buf, strerror(errno), GAIM_ERROR); + if (view->name) { + g_snprintf(buf, BUF_LONG, _("Couldn't open log file %s."), filename); + do_error_dialog(buf, strerror(errno), GAIM_ERROR); + } + /* If the system log doesn't exist.. no message just show empty system log window. + That way user knows that the log is empty :) + */ return; }