From: Herman B. <her...@us...> - 2003-03-31 19:16:41
|
Update of /cvsroot/gaim/gaim/src In directory sc8-pr-cvs1:/tmp/cvs-serv15948 Modified Files: dialogs.c Log Message: If the system log doesn't exist, just show empty system log window, rather than error message Index: dialogs.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/dialogs.c,v retrieving revision 1.445 retrieving revision 1.446 diff -u -d -r1.445 -r1.446 --- dialogs.c 31 Mar 2003 08:54:05 -0000 1.445 +++ dialogs.c 31 Mar 2003 19:16:31 -0000 1.446 @@ -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; } |