From 964152ed714606b4bcc98d4e92cea5e859e36bd3 Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Sun, 10 Mar 2019 12:22:15 +0200 Subject: [PATCH] Fix cursor going to start while editing GraphNode's title Fixes #26816 --- scene/gui/graph_node.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scene/gui/graph_node.cpp b/scene/gui/graph_node.cpp index 8c588109d6f..e8692d56d2e 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 {