changeset 4833:a6960b4b0c9b

[gaim-migrate @ 5158] A fix for the bug described in patch 702766, filed by darkrain: "gaim still segfaults if you click on the docklet just after starting gaim in the account editor." https://sourceforge.net/tracker/index.php?func=detail&aid=702766&group_id=235&atid=300235 committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 19 Mar 2003 22:31:05 +0000
parents edfe778868e2
children 0ed37c803503
files src/buddy.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy.c	Wed Mar 19 22:09:24 2003 +0000
+++ b/src/buddy.c	Wed Mar 19 22:31:05 2003 +0000
@@ -1370,7 +1370,7 @@
 		/* we're logging in or something... do nothing */
 		debug_printf("docklet_toggle called with connections but no blist!\n");
 	} else {
-		if (GTK_WIDGET_VISIBLE(mainwindow)) {
+		if (mainwindow && GTK_WIDGET_VISIBLE(mainwindow)) {
 			if (GAIM_WINDOW_ICONIFIED(mainwindow)) {
 				gtk_window_present(GTK_WINDOW(mainwindow));
 			} else {
@@ -1383,7 +1383,7 @@
 #if _WIN32
 			wgaim_systray_maximize(mainwindow);
 #endif
-			gtk_window_present(GTK_WINDOW(mainwindow));
+			show_login();
 		}
 	}
 }