# HG changeset patch # User Mark Doliner # Date 1048113065 0 # Node ID a6960b4b0c9b0a802b1056fb002db5006badc588 # Parent edfe778868e25835ce5946001e0899721c66b5c3 [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 diff -r edfe778868e2 -r a6960b4b0c9b src/buddy.c --- 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(); } } }