}
unset_option (OPTNEEDRESCORE);
+ if (option (OPTRESORTINIT))
+ {
+ unset_option (OPTRESORTINIT);
+ init = 1;
+ }
+
+ if (init && ctx->tree)
+ mutt_clear_threads (ctx);
if ((Sort & SORT_MASK) == SORT_THREADS)
{
Sort = i;
unset_option (OPTSORTSUBTHREADS);
}
- if (option (OPTRESORTINIT))
- {
- unset_option (OPTRESORTINIT);
- init = 1;
- }
mutt_sort_threads (ctx, init);
}
else if ((sortfunc = mutt_get_sort_func (Sort)) == NULL ||
init = 1;
if (init)
- {
- mutt_clear_threads (ctx);
ctx->thread_hash = hash_create (ctx->msgcount * 2);
- }
/* we want a quick way to see if things are actually attached to the top of the
* thread tree or if they're just dangling, so we attach everything to a top