diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-20 00:53:59 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-01-20 00:53:59 +0100 |
commit | a5e125cd7f72907f95c83f5ec1611996f7a28a3a (patch) | |
tree | bb2a189c36c5d7b64d7a2f4d5fbfb946ff43cb4f /src/core/model/Node.cpp | |
parent | 47311cc8b211a7fef033d744d9eba9f308726ea8 (diff) | |
parent | 7c64a0770a4800d80c5a53eea2243c46301f7749 (diff) |
Merge branch 'master' of somweyr.de:ousia
Diffstat (limited to 'src/core/model/Node.cpp')
-rw-r--r-- | src/core/model/Node.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/model/Node.cpp b/src/core/model/Node.cpp index c4892af..5867fa3 100644 --- a/src/core/model/Node.cpp +++ b/src/core/model/Node.cpp @@ -227,6 +227,7 @@ std::vector<std::string> ResolutionResult::path() const void Node::setName(std::string name) { + invalidate(); // Call the name change event and (afterwards!) set the new name NameChangeEvent ev{this->name, name}; triggerEvent(ev); @@ -380,7 +381,7 @@ bool Node::validateName(Logger &logger) const return true; } -void Node::invalidate() const +void Node::invalidate() { // Only perform the invalidation if necessary if (validationState != ValidationState::UNKNOWN) { @@ -391,7 +392,7 @@ void Node::invalidate() const } } -void Node::markInvalid() const +void Node::markInvalid() { // Do not override the validationState if we're currently in the validation // procedure, try to mark the parent node as invalid |