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 #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: 13975
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: Sun May 05 16:12:26 CEST 2024

Total time taken to generate the page: 0.02707 seconds