From 964152ed714606b4bcc98d4e92cea5e859e36bd3 Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Sun, 10 Mar 2019 12:22:15 +0200 Subject: 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(-) (limited to 'scene') 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 { -- cgit v1.2.3