浏览代码

Merge pull request #99982 from hakro/quiet_tiptool

Ignore custom tooltip if its text is empty in signals tab
Thaddeus Crews 10 月之前
父节点
当前提交
e9cbfd3dad
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/connections_dialog.cpp

+ 1 - 1
editor/connections_dialog.cpp

@@ -907,7 +907,7 @@ ConnectDialog::~ConnectDialog() {
 
 
 Control *ConnectionsDockTree::make_custom_tooltip(const String &p_text) const {
 Control *ConnectionsDockTree::make_custom_tooltip(const String &p_text) const {
 	// If it's not a doc tooltip, fallback to the default one.
 	// If it's not a doc tooltip, fallback to the default one.
-	if (p_text.contains("::")) {
+	if (p_text.is_empty() || p_text.contains("::")) {
 		return nullptr;
 		return nullptr;
 	}
 	}