changeset 11891:f1ada7870fae

[gaim-migrate @ 14182] This fixes clearing the error message when all accounts have reconnected committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 29 Oct 2005 17:36:56 +0000
parents fdb78734e2ae
children 31d3cdab1690
files src/gtkstatusbox.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkstatusbox.c	Sat Oct 29 17:13:41 2005 +0000
+++ b/src/gtkstatusbox.c	Sat Oct 29 17:36:56 2005 +0000
@@ -613,7 +613,9 @@
 {
 	if (status_box->error)
 		g_free(status_box->error);
-	status_box->error = g_strdup(error);
+	status_box->error = NULL;
+	if (error != NULL)
+		status_box->error = g_strdup(error);
 	gtk_gaim_status_box_refresh(status_box);
 }