navi Messages: 107 Registered: February 2012 Location: Sydney, Australia
Experienced Member
Finally got it working. I guess it just missed the Nightly builds of 01/19/2013 (release 5717). I actually though you only changed the FileSel.cpp and FileSel.h, so I downloaded these 2 files from SVN and it didn't work. But I downloaded the entire http://upp-mirror.googlecode.com/svn/trunk/uppsrc/CtrlLib/ and is now working 100%. I guess your changes spread much wider then only FileSel.cpp and FileSel.h.
One strange thing:
I am actually slightly cheating the system with this
class FileSelExtended : public FileSel{
public:
Vector<String>& GetVector(){ return fn; }
};
I am actually selecting at least hundreds of files/directories. thousands in many cases. so coping the name one by one using the operator[] seemed a bit of waste of cpu. I know, its not good and essentially a security issue for FileSel if not careful. but honestly ones I get the vector, I do not need to use any other function from that FileSel instance at this point.
now the strange bit is, in case of filename, you only keep the filename in the fn vector and append the path at operator[]. where in case of folders you keep the whole path and the folder name in fn vector. I no issues with it what so ever. I am happy with or without path in fn. you are the author, I guess you know best.