Mercurial > pidgin.yaz
comparison src/gtkconv.c @ 10113:84985e2b85cc
[gaim-migrate @ 11147]
Andrew Hart fixed a crash if you click Invite on the invite dialog more than
once without entering a screen name.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Mon, 18 Oct 2004 12:51:29 +0000 |
parents | 1a91e814e9d8 |
children | 4fd312ceaa29 |
comparison
equal
deleted
inserted
replaced
10112:1a91e814e9d8 | 10113:84985e2b85cc |
---|---|
631 | 631 |
632 if (resp == GTK_RESPONSE_OK) { | 632 if (resp == GTK_RESPONSE_OK) { |
633 buddy = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(info->entry)->entry)); | 633 buddy = gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(info->entry)->entry)); |
634 message = gtk_entry_get_text(GTK_ENTRY(info->message)); | 634 message = gtk_entry_get_text(GTK_ENTRY(info->message)); |
635 | 635 |
636 if (!g_ascii_strcasecmp(buddy, "")) { | 636 if (!g_ascii_strcasecmp(buddy, "")) |
637 g_free(info); | |
638 | |
639 return; | 637 return; |
640 } | |
641 | 638 |
642 serv_chat_invite(gaim_conversation_get_gc(info->conv), | 639 serv_chat_invite(gaim_conversation_get_gc(info->conv), |
643 gaim_conv_chat_get_id(GAIM_CONV_CHAT(info->conv)), | 640 gaim_conv_chat_get_id(GAIM_CONV_CHAT(info->conv)), |
644 message, buddy); | 641 message, buddy); |
645 } | 642 } |