Mercurial > geeqie
diff src/thumb_standard.c @ 827:e5172386f229
Revert patches 759 and 760.
759 patch broke adding selection of files through sort manager
to an unopened collection.
author | zas_ |
---|---|
date | Fri, 13 Jun 2008 12:27:41 +0000 |
parents | aae956e84de4 |
children | 9bd49e725ad3 |
line wrap: on
line diff
--- a/src/thumb_standard.c Fri Jun 13 11:51:23 2008 +0000 +++ b/src/thumb_standard.c Fri Jun 13 12:27:41 2008 +0000 @@ -1065,8 +1065,14 @@ g_idle_add_full(G_PRIORITY_LOW, thumb_std_maint_move_idle, NULL, NULL); } - thumb_std_maint_move_tail = g_list_append(thumb_std_maint_move_tail, tm); - if (!thumb_std_maint_move_list) - thumb_std_maint_move_list = thumb_std_maint_move_tail; - thumb_std_maint_move_tail = thumb_std_maint_move_tail->next; + if (thumb_std_maint_move_tail) + { + thumb_std_maint_move_tail = g_list_append(thumb_std_maint_move_tail, tm); + thumb_std_maint_move_tail = thumb_std_maint_move_tail->next; + } + else + { + thumb_std_maint_move_list = g_list_append(thumb_std_maint_move_list, tm); + thumb_std_maint_move_tail = thumb_std_maint_move_list; + } }