sync with sylpheed 0.6.2cvs11
[claws.git] / src / summaryview.c
index 7a2cc68e58572c8a4234c6f901bd8e3e7fca61b1..18501a178ab8559e529a38178e2bdeb178c5e3e9 100644 (file)
@@ -924,8 +924,12 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item,
 
                if (node == NULL && GTK_CLIST(ctree)->row_list != NULL)
                        node = GTK_CTREE_NODE(GTK_CLIST(ctree)->row_list_end);
-               summary_select_node(summaryview, node,
-                                   prefs_common.open_unread_on_enter);
+               if (prefs_common.open_unread_on_enter) {
+                       summary_unlock(summaryview);
+                       summary_select_node(summaryview, node, TRUE);
+                       summary_lock(summaryview);
+               } else
+                       summary_select_node(summaryview, node, FALSE);
        }
 
        summary_status_show(summaryview);