Commit ba595da8 authored by Amy Squillacote's avatar Amy Squillacote
Browse files

keep Accept button from turning red when value has not changed

parent a67d32f1
......@@ -25,7 +25,7 @@
//----------------------------------------------------------------------------
vtkStandardNewMacro(vtkPVSelectionList);
vtkCxxRevisionMacro(vtkPVSelectionList, "1.41");
vtkCxxRevisionMacro(vtkPVSelectionList, "1.42");
int vtkPVSelectionListCommand(ClientData cd, Tcl_Interp *interp,
int argc, char *argv[]);
......@@ -270,6 +270,11 @@ void vtkPVSelectionList::SetCurrentValue(int value)
//----------------------------------------------------------------------------
void vtkPVSelectionList::SelectCallback(const char *name, int value)
{
if (this->CurrentValue == value)
{
return;
}
this->CurrentValue = value;
this->SetCurrentName(name);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment