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
aecdd98c
Commit
aecdd98c
authored
Aug 07, 2017
by
Stefan Tauner
Browse files
FIJISettingsViewer: fix driver selection & validation due to early net validation
parent
189015a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/Tk/FIJISettingsViewer.pm
View file @
aecdd98c
...
...
@@ -1015,10 +1015,11 @@ sub _add_fiu_widgets {
$self
->
_validate_fiu_entry
(
1
,
$net_entry
,
'
FIU_NET_NAME
',
$i
,
@
{
$netname
}[
0
]);
$self
->
_validate_fiu_entry
(
1
,
$drv_entry
,
'
FIU_DRIVER_PATH
',
$i
,
$fiu
->
{'
FIU_DRIVER_PATH
'});
}
elsif
(
@
{
$netname
}
>
0
)
{
my
$old_netname
=
$fiu
->
{'
FIU_NET_NAME
'};
$rv
=
$self
->
_validate_fiu_entry
(
0
,
$net_entry
,
'
FIU_NET_NAME
',
$i
,
@
{
$netname
}[
0
]);
# If the new value differs from the previous one we need to do some work...
if
(
@
{
$netname
}[
0
]
ne
$fiu
->
{'
FIU_NET_NAME
'})
{
$fiu
->
{'
FIU_NET_NAME
'}
=
@
{
$netname
}[
0
];
# also, ignore the validation result because the previous one is still valid.
if
(
@
{
$netname
}[
0
]
ne
$old_netname
)
{
$fiu
->
{'
FIU_DRIVER_PATH
'}
=
"";
if
(
defined
(
$rv
))
{
Tk::FIJIUtils::
show_warning
(
$self
,
$rv
);
...
...
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