changeset 4365:6e96ced6fb78

[gaim-migrate @ 4631] Hope this fixes the problems people are having. I have to leave for awhile. Pain Day. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 20 Jan 2003 18:12:14 +0000
parents fa56829b9587
children 7ba9b56a8796
files src/gtkconv.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Mon Jan 20 17:37:20 2003 +0000
+++ b/src/gtkconv.c	Mon Jan 20 18:12:14 2003 +0000
@@ -4700,12 +4700,14 @@
 	if (gc == NULL) {
 		gtk_widget_set_sensitive(gtkconv->send, FALSE);
 
-		if (gaim_window_get_active_conversation(win) == conv) {
+		if (win != NULL && gaim_window_get_active_conversation(win) == conv) {
 			gtk_widget_set_sensitive(gtkwin->menu.insert_link, FALSE);
 		}
 	}
 	else {
-		gtk_widget_set_sensitive(gtkwin->menu.insert_link, TRUE);
+		if (win != NULL) {
+			gtk_widget_set_sensitive(gtkwin->menu.insert_link, TRUE);
+		}
 	}
 
 	if (gaim_conversation_get_type(conv) == GAIM_CONV_IM) {