summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorBojidar Marinov <bojidar.marinov.bg@gmail.com>2019-03-10 12:22:15 +0200
committerBojidar Marinov <bojidar.marinov.bg@gmail.com>2019-03-10 12:22:15 +0200
commit964152ed714606b4bcc98d4e92cea5e859e36bd3 (patch)
tree5a1b44c0f5da4a20d5f63382afc741996fd5ebee /scene
parent69ea7da76642be223f52f671677bcae99ba2db1b (diff)
Fix cursor going to start while editing GraphNode's title
Fixes #26816
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/graph_node.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/scene/gui/graph_node.cpp b/scene/gui/graph_node.cpp
index 8c588109d6..e8692d56d2 100644
--- a/scene/gui/graph_node.cpp
+++ b/scene/gui/graph_node.cpp
@@ -164,7 +164,6 @@ void GraphNode::_resort() {
vofs += size.y;
}
- _change_notify();
update();
connpos_dirty = true;
}
@@ -409,9 +408,12 @@ Size2 GraphNode::get_minimum_size() const {
void GraphNode::set_title(const String &p_title) {
+ if (title == p_title)
+ return;
title = p_title;
- minimum_size_changed();
update();
+ _change_notify("title");
+ minimum_size_changed();
}
String GraphNode::get_title() const {