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 » Little fix for FileSel::AddPlace
Little fix for FileSel::AddPlace [message #33267] Thu, 21 July 2011 12:36 Go to previous message
qapko is currently offline  qapko
Messages: 55
Registered: October 2007
Location: Slovakia
Member
Hello,
on my computer (Windows XP SP3) the GetVideoFolder() and GetDownloadFolder() functions return empty String (I don't know why and it doesn't bother me now). I had to change the code for FileSel::AddPlace(...) method to reflect such a situation:

FileSel& FileSel::AddPlace(const String& path, const Image& m, const String& name)
{
	if(path.GetCount()) // added
		AddPlaceRaw(NormalizePath(path), m, name);
	return *this;
}


Is this fix OK?

Gabi
 
Read Message
Read Message
Previous Topic: FileSel has classic Windows look since r2848
Next Topic: Filesel to admit folder names
Goto Forum:
  


Current Time: Thu Mar 28 16:20:44 CET 2024

Total time taken to generate the page: 0.00996 seconds