U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » FileSel&FileList, Path » Filesel to admit folder names
Re: Filesel to admit folder names [message #36081 is a reply to message #35642] Wed, 25 April 2012 16:26 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3461
Registered: August 2008
Senior Veteran
Hello Mirek

I have found the problem again and the reason of the strange behavior. In FileSel::Open(), line 829 there is a:
if(fn.Find(' ') < 0 && fn.Find('\"') < 0) {
...
	if(ff[0].is_directory) {
		SetDir(TrimDot(fn));
...
}
This means that if the directory has not spaces (like in "c:\data"), it is considered as directory. However if it has spaces (like in "C:\Documents and Settings", it is considered only as file name.


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Little fix for FileSel::AddPlace
Next Topic: Display FileName without full path
Goto Forum:
  


Current Time: Sat Sep 05 09:50:11 GMT+2 2026

Total time taken to generate the page: 0.01451 seconds