diff options
| -rw-r--r-- | editor/filesystem_dock.cpp | 10 | ||||
| -rw-r--r-- | editor/filesystem_dock.h | 2 | 
2 files changed, 6 insertions, 6 deletions
| diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index eb3ae33065..2bd72ba3da 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -1746,8 +1746,8 @@ void FileSystemDock::_file_option(int p_option, const Vector<String> &p_selected  			if (!fpath.ends_with("/")) {  				fpath = fpath.get_base_dir();  			} -			make_script_dialog_text->config("Node", fpath.plus_file("new_script.gd"), false); -			make_script_dialog_text->popup_centered(Size2(300, 300) * EDSCALE); +			make_script_dialog->config("Node", fpath.plus_file("new_script.gd"), false); +			make_script_dialog->popup_centered(Size2(300, 300) * EDSCALE);  		} break;  		case FILE_COPY_PATH: { @@ -2682,9 +2682,9 @@ FileSystemDock::FileSystemDock(EditorNode *p_editor) {  	make_scene_dialog->register_text_enter(make_scene_dialog_text);  	make_scene_dialog->connect("confirmed", this, "_make_scene_confirm"); -	make_script_dialog_text = memnew(ScriptCreateDialog); -	make_script_dialog_text->set_title(TTR("Create Script")); -	add_child(make_script_dialog_text); +	make_script_dialog = memnew(ScriptCreateDialog); +	make_script_dialog->set_title(TTR("Create Script")); +	add_child(make_script_dialog);  	new_resource_dialog = memnew(CreateDialog);  	add_child(new_resource_dialog); diff --git a/editor/filesystem_dock.h b/editor/filesystem_dock.h index d81a5133f2..f8e0eb4d71 100644 --- a/editor/filesystem_dock.h +++ b/editor/filesystem_dock.h @@ -140,7 +140,7 @@ private:  	ConfirmationDialog *make_scene_dialog;  	LineEdit *make_scene_dialog_text;  	ConfirmationDialog *overwrite_dialog; -	ScriptCreateDialog *make_script_dialog_text; +	ScriptCreateDialog *make_script_dialog;  	CreateDialog *new_resource_dialog;  	bool always_show_folders; |