diff src/toc.c @ 296:a88b889b692b

[gaim-migrate @ 306] 0.9.17, here we come committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 01 Jun 2000 00:24:34 +0000
parents a8971e3704f6
children b32c83750104
line wrap: on
line diff
--- a/src/toc.c	Thu Jun 01 00:16:33 2000 +0000
+++ b/src/toc.c	Thu Jun 01 00:24:34 2000 +0000
@@ -150,12 +150,12 @@
 	make_buddy();
 	if (general_options & OPT_GEN_APP_BUDDY_SHOW) {
                 gnome_buddy_show();
-                parse_toc_buddy_list(config);
+                parse_toc_buddy_list(config, 0);
 		createOnlinePopup();
                 set_applet_draw_open();
         } else {
                 gnome_buddy_hide();
-                parse_toc_buddy_list(config);
+                parse_toc_buddy_list(config, 0);
                 set_applet_draw_closed();
         }
 
@@ -165,7 +165,7 @@
 #else
         gtk_widget_hide(mainwindow);
 	show_buddy_list();
-        parse_toc_buddy_list(config);
+        parse_toc_buddy_list(config, 0);
         refresh_buddy_window();
 #endif
         
@@ -848,7 +848,7 @@
         }
 }
 
-void parse_toc_buddy_list(char *config)
+void parse_toc_buddy_list(char *config, int from_do_import)
 {
 	char *c;
         char current[256];
@@ -903,7 +903,7 @@
 	/* perhaps the server dropped the buddy list, try importing from
            cache */
 
-	if ( how_many == 0 ) {
+	if ( how_many == 0 && !from_do_import ) {
 		do_import( (GtkWidget *) NULL, 0 );
 	} else if ( bud_list_cache_exists() == FALSE ) {
 		do_export( (GtkWidget *) NULL, 0 );