diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-15 12:21:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-15 12:21:15 +0100 |
commit | 3da2160233e9e2624cadab463179d048eea023ba (patch) | |
tree | 1905291922952a90aab9c0901ac4d29cbef480ad | |
parent | bab91bd943aa5a23bab871e58e9640536cc67b34 (diff) | |
parent | 181e74855e2c6e9523030d2b36019cd70d26e564 (diff) |
Merge pull request #35148 from asynts/asynts.dont-close-connections-dialog
Don't close the connection dialog when the validation failed.
-rw-r--r-- | editor/connections_dialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp index 60058f2f43..ec40b3254f 100644 --- a/editor/connections_dialog.cpp +++ b/editor/connections_dialog.cpp @@ -127,6 +127,7 @@ void ConnectDialog::ok_pressed() { } } emit_signal("connected"); + hide(); } void ConnectDialog::_cancel_pressed() { @@ -280,6 +281,8 @@ bool ConnectDialog::is_editing() const { */ void ConnectDialog::init(Connection c, bool bEdit) { + set_hide_on_ok(false); + source = static_cast<Node *>(c.source); signal = c.signal; |