Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
12e974db
Commit
12e974db
authored
Sep 07, 2010
by
dt
Browse files
Session Manager: Session names are file names, prevent some special chars
Task-Nr: QTCREATORBUG-2276
parent
d79b3a15
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/sessiondialog.cpp
View file @
12e974db
...
...
@@ -57,6 +57,14 @@ SessionValidator::SessionValidator(QObject *parent, QStringList sessions)
QValidator
::
State
SessionValidator
::
validate
(
QString
&
input
,
int
&
pos
)
const
{
Q_UNUSED
(
pos
)
if
(
input
.
contains
(
'/'
)
||
input
.
contains
(
':'
)
||
input
.
contains
(
'\\'
)
||
input
.
contains
(
'?'
)
||
input
.
contains
(
'*'
))
return
QValidator
::
Invalid
;
if
(
m_sessions
.
contains
(
input
))
return
QValidator
::
Intermediate
;
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment