trimmed the name of the variable
@@ -1268,7 +1268,7 @@ QvisExpressionsWindow::FinalizeExpressionNameChange()
QString text_from_expr_list = exprListBox->item(index)->text();
// Get the text from the nameEdit field, automatically converting empty text to unnamed%1.
- QString text_from_line_edit = nameEdit->text();
+ QString text_from_line_edit = nameEdit->text().trimmed();
if (text_from_line_edit.isEmpty())
{
int newid = 1;
@@ -1286,8 +1286,6 @@ QvisExpressionsWindow::FinalizeExpressionNameChange()
// If the name has indeed changed, then update the list
if (text_from_expr_list != text_from_line_edit)
{
- debug4 << "Changing name of the expression because name already in use." << std::endl;
-
// Need to make sure that the new name is not already taken. If it is, then append a number
// on the end. Increment that number however many times is necessary until we get a unique
// name.
