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 #36082 is a reply to message #36081] Wed, 25 April 2012 22:55 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
koldo wrote on Wed, 25 April 2012 10:26

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.



OK, I guess that the test for space is not really needed (I guess I was too prudent at the time of writing it), removing seems to fix the problem (comited to svn).

Mirek
 
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:02:03 GMT+2 2026

Total time taken to generate the page: 0.00779 seconds