[Commits] summaryview.c 1.395.2.434 1.395.2.435

pawel at claws-mail.org pawel at claws-mail.org
Mon Oct 31 19:57:52 CET 2011


Update of /home/claws-mail/claws/src
In directory claws-mail:/tmp/cvs-serv30092/src

Modified Files:
      Tag: gtk2
	summaryview.c 
Log Message:
2011-10-31 [pawel]	3.7.10cvs64

	* src/summaryview.c
	* src/gtk/gtkutils.c
		Fix bug #2303 'Next unread message enables message view'
		Don't show previously hidden message view in main window
		when user reads messages in external window

Index: summaryview.c
===================================================================
RCS file: /home/claws-mail/claws/src/summaryview.c,v
retrieving revision 1.395.2.434
retrieving revision 1.395.2.435
diff -u -d -r1.395.2.434 -r1.395.2.435
--- summaryview.c	23 Oct 2011 20:50:47 -0000	1.395.2.434
+++ summaryview.c	31 Oct 2011 18:57:50 -0000	1.395.2.435
@@ -3426,7 +3426,8 @@
 	gint val;
 	START_TIMING("");
 	if (!new_window) {
-		if (summaryview->displayed == row)
+		if (summaryview->displayed == row &&
+		    messageview_is_visible(summaryview->messageview))
 			return;
 		else if (summaryview->messageview)
 			summaryview->messageview->filtered = FALSE;
@@ -3473,7 +3474,8 @@
 			msgview = summaryview->messageview;
 			summaryview->last_displayed = summaryview->displayed;
 			summaryview->displayed = row;
-			if (!messageview_is_visible(msgview)) {
+			if (!messageview_is_visible(msgview) &&
+			    gtk_window_is_active(GTK_WINDOW(summaryview->mainwin->window))) {
 				main_window_toggle_message_view(summaryview->mainwin);
 				GTK_EVENTS_FLUSH();
 			}



More information about the Commits mailing list