Fileselector: make parse path string windows platform support.

On windows platform file path contain '\\' instead of '/'.
Test plan:
   - on windows platform launch elemntary_test -to fileselector.
   - type something into search entry.

@fix
This commit is contained in:
Mykyta Biliavskyi 2016-12-27 10:17:43 +02:00
parent a6f7b0f834
commit f967c4dea5
1 changed files with 2 additions and 2 deletions

View File

@ -506,11 +506,11 @@ _filter_child(Elm_Fileselector_Data* sd,
{
strncpy(temp_path, path, sizeof(temp_path) - 1);
temp_path[sizeof(temp_path) - 1] = 0;
pch = strchr(temp_path, '/');
pch = strchr(temp_path, EINA_PATH_SEP_C);
while (pch != NULL)
{
temp = pch;
pch = strchr(pch + 1, '/');
pch = strchr(pch + 1, EINA_PATH_SEP_C);
}
temp++;
if ((temp) && (sd->search_string) &&