Fixed handling of configurations with full stops in the name.
This commit is contained in:
parent
25a332f556
commit
c0048bc24f
2 changed files with 7 additions and 25 deletions
|
|
@ -32,7 +32,7 @@ static void select_config(void* hdlg, char* name)
|
|||
static void config_list_update(void* hdlg)
|
||||
{
|
||||
char s[512];
|
||||
int num, c, p;
|
||||
int num, p;
|
||||
void* h;
|
||||
|
||||
strcpy(s, configs_path);
|
||||
|
|
@ -47,22 +47,6 @@ static void config_list_update(void* hdlg)
|
|||
|
||||
num = wx_sendmessage(h, WX_LB_GETCOUNT, 0, 0);
|
||||
|
||||
for (c = 0; c < num; c++)
|
||||
{
|
||||
char *ext;
|
||||
|
||||
wx_sendmessage(h, WX_LB_GETTEXT, c, (LONG_PARAM)s);
|
||||
ext = get_extension(s);
|
||||
if (ext && ext[0])
|
||||
{
|
||||
ext--;
|
||||
*ext = 0;
|
||||
}
|
||||
|
||||
wx_sendmessage(h, WX_LB_DELETESTRING, c, 0);
|
||||
wx_sendmessage(h, WX_LB_INSERTSTRING, c, (LONG_PARAM)s);
|
||||
}
|
||||
|
||||
if (num > 0)
|
||||
{
|
||||
if (p >= num)
|
||||
|
|
|
|||
Loading…
Reference in a new issue