comparison src/dialogs.c @ 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 553d96cb9b26
children cd6415033718
comparison
equal deleted inserted replaced
4922:b15e2e8343b0 4923:e96261d0dba8
3618 } else { 3618 } else {
3619 char *tmp = gaim_user_dir(); 3619 char *tmp = gaim_user_dir();
3620 g_snprintf(filename, 256, "%s" G_DIR_SEPARATOR_S "logs" G_DIR_SEPARATOR_S "system", tmp); 3620 g_snprintf(filename, 256, "%s" G_DIR_SEPARATOR_S "logs" G_DIR_SEPARATOR_S "system", tmp);
3621 } 3621 }
3622 if ((fp = fopen(filename, "r")) == NULL) { 3622 if ((fp = fopen(filename, "r")) == NULL) {
3623 g_snprintf(buf, BUF_LONG, _("Couldn't open log file %s."), filename); 3623 if (view->name) {
3624 do_error_dialog(buf, strerror(errno), GAIM_ERROR); 3624 g_snprintf(buf, BUF_LONG, _("Couldn't open log file %s."), filename);
3625 do_error_dialog(buf, strerror(errno), GAIM_ERROR);
3626 }
3627 /* If the system log doesn't exist.. no message just show empty system log window.
3628 That way user knows that the log is empty :)
3629 */
3625 return; 3630 return;
3626 } 3631 }
3627 3632
3628 gtk_widget_set_sensitive(view->bbox, FALSE); 3633 gtk_widget_set_sensitive(view->bbox, FALSE);
3629 g_signal_handlers_disconnect_by_func(G_OBJECT(view->window), 3634 g_signal_handlers_disconnect_by_func(G_OBJECT(view->window),