Commit 2da6f8d4 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

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

Task-number: QTCREATORBUG-5063

Change-Id: Ide80c5e52a867c45d8feb9109c65328bdda0f86c
Reviewed-on: http://codereview.qt.nokia.com/443

Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent 39b7faa1
......@@ -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[] = {".."};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment