Use AIFilePicker everywhere.
Also upgrade the file picker filters with the new extensions found in the orginal file picker code of Singularity. Also improve AIFilePicker a bit: added hasFilename() and now deleting the statemachine automatically by default: it's no longer needed to call deleteMe from the callback.
This commit is contained in:
@@ -524,7 +524,11 @@ std::string LLDir::getTempFilename() const
|
||||
std::string LLDir::getScrubbedFileName(const std::string uncleanFileName)
|
||||
{
|
||||
std::string name(uncleanFileName);
|
||||
const std::string illegalChars(getForbiddenFileChars());
|
||||
std::string illegalChars(getForbiddenFileChars());
|
||||
#if LL_LINUX || LL_SOLARIS
|
||||
// Spaces in filenames are REALLY annoying on UNIX.
|
||||
illegalChars += ' ';
|
||||
#endif
|
||||
// replace any illegal file chars with and underscore '_'
|
||||
for( unsigned int i = 0; i < illegalChars.length(); i++ )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user