# HG changeset patch # User Herman Bloggs # Date 1049138191 0 # Node ID e96261d0dba8214840fe1639f4d6dc66d2e2be13 # Parent b15e2e8343b0671b28bb2f490ba14bf6551dd26b [gaim-migrate @ 5257] If the system log doesn't exist, just show empty system log window, rather than error message committer: Tailor Script diff -r b15e2e8343b0 -r e96261d0dba8 src/dialogs.c --- 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; }