Ignore dot files in the styles directory.

This commit is contained in:
Scott Moynes 2002-10-26 15:31:33 +00:00
parent be141c2ac3
commit 9af642d299

View file

@ -2314,7 +2314,8 @@ bool BScreen::parseMenuFile(FILE *file, Rootmenu *menu) {
for (; it != end; ++it) { for (; it != end; ++it) {
const string& fname = *it; const string& fname = *it;
if (fname[fname.size()-1] == '~') //ignore backups and dot files
if (fname[fname.size()-1] == '~' || fname[0] == '.')
continue; continue;
string style = stylesdir; string style = stylesdir;