Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Instrument Control
NomadServer
Commits
1c6ce1fd
Commit
1c6ce1fd
authored
Nov 28, 2022
by
legoc
Browse files
Variable command box logs error if variable is empty
parent
6a052ab8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core/commandzone/generic/VariableCommandBox.cpp
View file @
1c6ce1fd
...
...
@@ -142,6 +142,11 @@ void VariableCommandBox::setInsideForLoop() {
void
VariableCommandBox
::
executeCommand
()
{
if
(
m_variableName
==
""
)
{
LogHandler
::
getInstance
()
->
write
(
SimpleLog
(
common
::
LOG_ERROR
,
"Set variable error: cannot set empty variable to "
+
m_expression
));
return
;
}
try
{
core
::
UserVariableManager
::
getInstance
()
->
editUserVariable
(
m_variableName
,
m_expression
);
...
...
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