2005-06-07 [colin] 1.9.11cvs45

* src/summaryview.c
		Add missing unlocks/locks
This commit is contained in:
Colin Leroy 2005-06-07 20:09:30 +00:00
parent 5564712e00
commit 908b1102be
4 changed files with 11 additions and 7 deletions

View file

@ -1,3 +1,8 @@
2005-06-07 [colin] 1.9.11cvs45
* src/summaryview.c
Add missing unlocks/locks
2005-06-07 [paul] 1.9.11cvs44
* src/summaryview.c

View file

@ -533,3 +533,4 @@
( cvs diff -u -r 1.2 -r 1.3 src/common/md5.c; cvs diff -u -r 1.395.2.74 -r 1.395.2.75 src/summaryview.c; cvs diff -u -r 1.207.2.40 -r 1.207.2.41 src/folderview.c; ) > 1.9.11cvs42.patchset
( cvs diff -u -r 1.395.2.75 -r 1.395.2.76 src/summaryview.c; ) > 1.9.11cvs43.patchset
( cvs diff -u -r 1.395.2.76 -r 1.395.2.77 src/summaryview.c; ) > 1.9.11cvs44.patchset
( cvs diff -u -r 1.395.2.77 -r 1.395.2.78 src/summaryview.c; ) > 1.9.11cvs45.patchset

View file

@ -11,7 +11,7 @@ MINOR_VERSION=9
MICRO_VERSION=11
INTERFACE_AGE=0
BINARY_AGE=0
EXTRA_VERSION=44
EXTRA_VERSION=45
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=

View file

@ -993,7 +993,9 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item)
displayed_msgnum);
if (!summaryview->displayed)
messageview_clear(summaryview->messageview);
summary_unlock(summaryview);
summary_select_by_msgnum(summaryview, selected_msgnum);
summary_lock(summaryview);
if (!summaryview->selected) {
/* no selected message - select first unread
message, but do not display it */
@ -1004,16 +1006,12 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item)
(ctree,
item->sort_type == SORT_DESCENDING
? 0 : GTK_CLIST(ctree)->rows - 1);
summary_unlock(summaryview);
summary_select_node(summaryview, node, FALSE, TRUE);
summary_lock(summaryview);
}
} else {
/* select first unread message */
#if 0
if (summaryview->sort_key == SORT_BY_SCORE)
node = summary_find_next_important_score(summaryview,
NULL);
else
#endif
node = summary_find_next_flagged_msg(summaryview, NULL,
MSG_UNREAD, FALSE);
if (node == NULL && GTK_CLIST(ctree)->row_list != NULL) {