Wizards: Do not allow ~,! in file names.

Task-number: QTCREATORBUG-5063

Change-Id: Ide80c5e52a867c45d8feb9109c65328bdda0f86c
Reviewed-on: http://codereview.qt.nokia.com/443
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
Friedemann Kleint
2011-06-10 09:36:55 +02:00
parent 39b7faa110
commit 2da6f8d479

View File

@@ -91,8 +91,8 @@ void FileNameValidatingLineEdit::setAllowDirectories(bool v)
# define SLASHES "/"
#endif
static const char *notAllowedCharsSubDir = "?:&*\"|#%<> ";
static const char *notAllowedCharsNoSubDir = "?:&*\"|#%<> "SLASHES;
static const char notAllowedCharsSubDir[] = "~!?:&*\"|#%<> ";
static const char notAllowedCharsNoSubDir[] = "~!?:&*\"|#%<> "SLASHES;
static const char *notAllowedSubStrings[] = {".."};