changeset 5901:74e273e22f94

[gaim-migrate @ 6333] Fixed a warning when moving a conversation to the last position in a window. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 15 Jun 2003 20:23:52 +0000
parents faf4363e56a8
children 6889b89cab90
files src/gtkconv.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Sun Jun 15 20:13:48 2003 +0000
+++ b/src/gtkconv.c	Sun Jun 15 20:23:52 2003 +0000
@@ -1725,7 +1725,8 @@
 
 		pos = gaim_window_add_conversation(dest_win, conv);
 
-		gaim_window_move_conversation(dest_win, pos, dest_page_num);
+		if (pos != dest_page_num)
+			gaim_window_move_conversation(dest_win, pos, dest_page_num);
 
 		gaim_window_switch_conversation(dest_win, dest_page_num);
 	}