Skip to content

Commit

Permalink
Merge pull request #88926 from samsface/fix_animation_player_error_di…
Browse files Browse the repository at this point in the history
…alog

Fix animation player error dialog focus
  • Loading branch information
akien-mga committed Apr 13, 2024
2 parents e5c4ce6 + 943aeb4 commit 2a0fcc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions editor/plugins/animation_player_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2041,10 +2041,10 @@ AnimationPlayerEditor::AnimationPlayerEditor(AnimationPlayerEditorPlugin *p_plug
vb->add_child(name_hb);
name_dialog->register_text_enter(name);

error_dialog = memnew(ConfirmationDialog);
error_dialog = memnew(AcceptDialog);
error_dialog->set_ok_button_text(TTR("Close"));
error_dialog->set_title(TTR("Error!"));
add_child(error_dialog);
name_dialog->add_child(error_dialog);

name_dialog->connect(SNAME("confirmed"), callable_mp(this, &AnimationPlayerEditor::_animation_name_edited));

Expand Down
2 changes: 1 addition & 1 deletion editor/plugins/animation_player_editor_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class AnimationPlayerEditor : public VBoxContainer {
} blend_editor;

ConfirmationDialog *name_dialog = nullptr;
ConfirmationDialog *error_dialog = nullptr;
AcceptDialog *error_dialog = nullptr;
int name_dialog_op = TOOL_NEW_ANIM;

bool updating = false;
Expand Down

0 comments on commit 2a0fcc4

Please sign in to comment.