Browse Source

Merge pull request #26867 from bojidar-bg/26816-graphnode-title

Fix cursor going to start while editing GraphNode's title
Rémi Verschelde 6 years ago
parent
commit
59aa79f218
1 changed files with 4 additions and 2 deletions
  1. 4 2
      scene/gui/graph_node.cpp

+ 4 - 2
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 {