瀏覽代碼

Fix leftover connection to the "Open" signal in FileSystemDock

Fixes #28903.
Michael Alexsander Silva Dias 6 年之前
父節點
當前提交
be8dc97be7
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 0 1
      editor/editor_node.cpp
  2. 1 1
      scene/gui/line_edit.cpp

+ 0 - 1
editor/editor_node.cpp

@@ -5997,7 +5997,6 @@ EditorNode::EditorNode() {
 	node_dock = memnew(NodeDock);
 
 	filesystem_dock = memnew(FileSystemDock(this));
-	filesystem_dock->connect("open", this, "open_request");
 	filesystem_dock->connect("inherit", this, "_inherit_request");
 	filesystem_dock->connect("instance", this, "_instance_request");
 	filesystem_dock->connect("display_mode_changed", this, "_save_docks");

+ 1 - 1
scene/gui/line_edit.cpp

@@ -613,7 +613,7 @@ void LineEdit::_notification(int p_what) {
 #endif
 		case NOTIFICATION_RESIZED: {
 
-			window_pos = 0; //force scroll back since it's expanding to text length
+			window_pos = 0;
 			set_cursor_position(get_cursor_position());
 
 		} break;