summaryrefslogtreecommitdiff
path: root/src/core/model/Node.cpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-20 00:53:59 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-01-20 00:53:59 +0100
commita5e125cd7f72907f95c83f5ec1611996f7a28a3a (patch)
treebb2a189c36c5d7b64d7a2f4d5fbfb946ff43cb4f /src/core/model/Node.cpp
parent47311cc8b211a7fef033d744d9eba9f308726ea8 (diff)
parent7c64a0770a4800d80c5a53eea2243c46301f7749 (diff)
Merge branch 'master' of somweyr.de:ousia
Diffstat (limited to 'src/core/model/Node.cpp')
-rw-r--r--src/core/model/Node.cpp5
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