Code

Only display the "change color" error message if we need init_color()
authorKalle Wallin <kaw@linux.se>
Mon, 14 Jun 2004 23:26:28 +0000 (23:26 +0000)
committerKalle Wallin <kaw@linux.se>
Mon, 14 Jun 2004 23:26:28 +0000 (23:26 +0000)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1493 09075e82-0dd4-0310-85a5-a0d7c8717e4f

src/colors.c

index 2a1c04c030c6a9380b768ea224f7456e946291ce..692f01ecd0493350d69545b79e9ec79d82b06598 100644 (file)
@@ -263,7 +263,7 @@ colors_start(void)
              list=list->next;
            }
        }
-      else if( !can_change_color() )
+      else if( color_definition_list && !can_change_color() )
        fprintf(stderr, _("Terminal lacks support for changing colors!\n"));
 
       if( options.enable_colors )