Browse Source

Fixed an issue where changing the default_cursor on the RichTextLabel's meta_hover_ended caused the entire project to crash

Robear Selwans 6 năm trước cách đây
mục cha
commit
84dfb3ff2d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      scene/gui/rich_text_label.cpp

+ 1 - 1
scene/gui/rich_text_label.cpp

@@ -1136,8 +1136,8 @@ void RichTextLabel::_gui_input(Ref<InputEvent> p_event) {
 				emit_signal("meta_hover_started", meta);
 			}
 		} else if (meta_hovering) {
-			emit_signal("meta_hover_ended", current_meta);
 			meta_hovering = NULL;
+			emit_signal("meta_hover_ended", current_meta);
 			current_meta = false;
 		}
 	}