summaryrefslogtreecommitdiff
path: root/src/core/model/Node.cpp
diff options
context:
space:
mode:
authorBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-01-19 20:21:22 +0100
committerBenjamin Paassen <bpaassen@techfak.uni-bielefeld.de>2015-01-19 20:21:22 +0100
commit5f5858d503640286c9e5d23634f9f3a8de6a2091 (patch)
tree4e5167b154b8495e5d097ac309b6170aa4b84bb3 /src/core/model/Node.cpp
parent5e779c017020a8e0405ee8e43c6ea7d4a9a11ad2 (diff)
(re-)introduced setter methods to Document.
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