mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtlogin: Fix up Options->Language menu
In dtlogin, you can select the language to switch to by selecting it via Options->Language. Unfortunately this was also including '.' and '..', since this list is built dynamically by scanning a directory. Now we screen out '.' and '..'.
This commit is contained in:
parent
94c826e1f4
commit
4553d912b0
1 changed files with 4 additions and 0 deletions
|
@ -1092,6 +1092,10 @@ ScanNLSDir(char *dirname)
|
|||
{
|
||||
locale = dp->d_name;
|
||||
|
||||
if ( (strcmp(dp->d_name, ".") == 0) ||
|
||||
(strcmp(dp->d_name, "..") == 0) )
|
||||
continue;
|
||||
|
||||
if (locale[0] != '.' &&
|
||||
LANGLISTSIZE > (int) (strlen(languageList)+strlen(locale)+2));
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue