]> granicus.if.org Git - neomutt/commitdiff
Fix #192.
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 17 Jul 2000 07:27:43 +0000 (07:27 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 17 Jul 2000 07:27:43 +0000 (07:27 +0000)
curs_main.c

index e114f14d52f3f294b0795ee9589c4a6516906398..b92429ac432f4b0c508e0120537d7b4b1296d5d0 100644 (file)
@@ -1425,7 +1425,13 @@ int mutt_index_menu (void)
 
       case OP_MAIN_COLLAPSE_THREAD:
        CHECK_MSGCOUNT;
-       
+
+        if ((Sort & SORT_MASK) != SORT_THREADS)
+        {
+         mutt_error _("Threading is not enabled.");
+         break;
+       }
+      
        if (CURHDR->collapsed)
        {
          menu->current = mutt_uncollapse_thread (Context, CURHDR);