- Validate new file names to make sure they are allowed by the file system

This commit is contained in:
Christophe Dumez 2010-01-05 12:28:42 +00:00
parent 037e57b687
commit 4fc777268b
31 changed files with 2717 additions and 1649 deletions

View file

@ -191,7 +191,7 @@ public:
static bool isValidFileSystemName(QString filename) {
filename = filename.replace("\\", "/");
QRegExp regex("[/:!?\"*<>|]");
QRegExp regex("[/:?\"*<>|]");
if(filename.contains(regex))
return false;
return true;