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 next message
qapko is currently offline  qapko
Messages: 53
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
Re: Little fix for FileSel::AddPlace [message #33278 is a reply to message #33267] Fri, 22 July 2011 09:31 Go to previous message
mirek is currently offline  mirek
Messages: 13442
Registered: November 2005
Ultimate Member
Applied, thank you.


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


Current Time: Thu Oct 28 00:54:40 CEST 2021

Total time taken to generate the page: 0.04126 seconds