-// Collect all selected files
- if(!result)
- {
- char *in_path, *out_path;
- int i = 0;
- window->lock_window("LoadFileThread::handle_done_event");
- window->hide_window();
- window->unlock_window();
-
- while((in_path = window->get_path(i)))
- {
- int j;
- for(j = 0; j < path_list.total; j++)
- {
- if(!strcmp(in_path, path_list.values[j])) break;
- }
-
- if(j == path_list.total)
- {
- path_list.append(out_path = new char[strlen(in_path) + 1]);
- strcpy(out_path, in_path);
- }
- i++;
- }
- }