Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 3361
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: Thu May 16 07:09:13 CEST 2024

Total time taken to generate the page: 0.01993 seconds