rename empty_tag config option to empty_tag_marker

it was conflicting with empty_tag_color. since empty_tag_color
contains empty_tag, ncmpcpp was parsing wrong variable if the
first variable was before the second one in configuration file.
This commit is contained in:
Andrzej Rybczak
2009-08-26 17:00:46 +02:00
parent e322e721f3
commit 6f88f9aeb2
3 changed files with 3 additions and 3 deletions

View File

@@ -226,7 +226,7 @@
#
#mouse_support = "yes"
#
#empty_tag = "<empty>"
#empty_tag_marker = "<empty>"
#
#enable_window_title = "yes"
#

View File

@@ -238,7 +238,7 @@ Default user interface used by ncmpcpp at start.
.B media_library_left_column = a/y/g/c/p
Default tag type for left column in media library. Legend for possible letters is in SONG FORMAT section.
.TP
.B empty_tag = TEXT
.B empty_tag_marker = TEXT
Text that will be displayed, if requested tag is not set.
.TP
.B empty_tag_color = COLOR

View File

@@ -817,7 +817,7 @@ void ReadConfiguration(ncmpcpp_config &conf)
conf.song_window_title_format += '}';
}
}
else if (cl.find("empty_tag") != std::string::npos)
else if (cl.find("empty_tag_marker") != std::string::npos)
{
conf.empty_tag = v; // is this case empty string is allowed
}