Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vecs
FIJI Public
Commits
5ad781ea
Commit
5ad781ea
authored
Jan 04, 2018
by
Stefan Tauner
Browse files
FIJISettingsViewer: allow FIU names to be replaced/deleted by empty strings
parent
854a3c39
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/Tk/FIJISettingsViewer.pm
View file @
5ad781ea
...
...
@@ -1239,8 +1239,11 @@ sub _rename_fiu_dialog {
my
$rv
=
$rename_dialog
->
Show
();
my
$fiu_name
=
$e
->
get
();
if
(
$rv
eq
"
OK
"
&&
(
!
$fiu_name
=~
/^[\t ]*$/
))
{
my
$name_str
=
"
FIU
$i
(
\"
$fiu_name
\"
)
";
if
(
$rv
eq
"
OK
")
{
$fiu_name
=~
s/^\s+|\s+$//g
;
# Trim whitespace left and right
my
$id_str
=
"
FIU
$i
";
my
$name_str
=
$id_str
;
$name_str
.=
"
(
\"
$fiu_name
\"
)
"
if
(
defined
(
$fiu_name
)
&&
length
(
$fiu_name
)
>
0
);
@
{
$self
->
{
settings
}
->
{
fius
}}[
$i
]
->
{'
FIU_NAME
'}
=
$fiu_name
;
$labframe
->
configure
(
-
label
=>
$name_str
);
$self
->
_check_change
();
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment