Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11440


Ignore:
Timestamp:
10/10/14 08:45:04 (10 years ago)
Author:
jkarder
Message:

#2262: fixed UpdateVariable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Scripting.Views/3.3/VariableStoreView.cs

    r11439 r11440  
    176176        string type = variable.Value == null ? "null" : variable.Value.GetType().ToString();
    177177        bool serializable = IsSerializable(variable);
     178        bool validIdentifier = SafeVariableNameRegex.IsMatch(variable.Key);
    178179        if (!serializable) listViewItem.ImageIndex = 0;
     180        else if (!validIdentifier) listViewItem.ImageIndex = 1;
    179181        else if (variable.Value != null) listViewItem.ImageIndex = 2;
    180182        else listViewItem.ImageIndex = 3;
Note: See TracChangeset for help on using the changeset viewer.