count number of found songs properly

This commit is contained in:
unK
2008-09-17 17:54:42 +02:00
parent 0ced9f5fc1
commit bcd977849c

View File

@@ -1152,6 +1152,7 @@ int main(int argc, char *argv[])
{
bool bold = 0;
int found = mSearcher->Size()-search_engine_static_options;
found += 3; // don't count options inserted below
mSearcher->InsertSeparator(14);
mSearcher->Insert(15, std::pair<string, Song>("[." + Config.color1 + "]Search results:[/" + Config.color1 + "] [." + Config.color2 + "]Found " + IntoStr(found) + (found > 1 ? " songs" : " song") + "[/" + Config.color2 + "]", Song()), 1, 1);
mSearcher->InsertSeparator(16);