Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ImageINSA_Tanguy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tanguy.Raufflet
ImageINSA_Tanguy
Commits
da0a5912
Commit
da0a5912
authored
6 years ago
by
Provot Bertrand
Browse files
Options
Downloads
Patches
Plain Diff
last translations + regex in filter editor
parent
35f84ebd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/Widgets/FilterEditor.cpp
+2
-2
2 additions, 2 deletions
app/Widgets/FilterEditor.cpp
app/imageinsa_en.ts
+1567
-763
1567 additions, 763 deletions
app/imageinsa_en.ts
app/imageinsa_fr.ts
+1575
-755
1575 additions, 755 deletions
app/imageinsa_fr.ts
with
3144 additions
and
1520 deletions
app/Widgets/FilterEditor.cpp
+
2
−
2
View file @
da0a5912
...
...
@@ -160,9 +160,9 @@ void FilterEditor::nameChanged(QString name) {
void
FilterEditor
::
save
()
{
vector
<
Filter
*>
filters
;
if
(
_name
->
text
()
==
""
)
if
(
!
regex_match
(
_name
->
text
().
toStdString
(),
regex
(
"[!-~]+"
))
||
_name
->
text
()
==
""
)
{
QMessageBox
msgBox
(
QMessageBox
::
Critical
,
tr
(
"Error!"
),
tr
(
"Your filter needs a name to be saved."
));
QMessageBox
msgBox
(
QMessageBox
::
Critical
,
tr
(
"Error!"
),
tr
(
"Your filter needs a
valid
name to be saved
(no whitespace)
."
));
msgBox
.
setStandardButtons
(
QMessageBox
::
Ok
);
msgBox
.
setDefaultButton
(
QMessageBox
::
Ok
);
msgBox
.
exec
();
...
...
This diff is collapsed.
Click to expand it.
app/imageinsa_en.ts
+
1567
−
763
View file @
da0a5912
This diff is collapsed.
Click to expand it.
app/imageinsa_fr.ts
+
1575
−
755
View file @
da0a5912
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment