diff options
author | asynts <asynts@gmail.com> | 2020-01-14 18:58:26 +0100 |
---|---|---|
committer | asynts <asynts@gmail.com> | 2020-01-15 10:33:50 +0100 |
commit | 181e74855e2c6e9523030d2b36019cd70d26e564 (patch) | |
tree | 1905291922952a90aab9c0901ac4d29cbef480ad | |
parent | bab91bd943aa5a23bab871e58e9640536cc67b34 (diff) |
Don't close the connection dialog when the validation failed.
Currently the connection dialog is closed when
1. no method name is specified, or
2. no script is attached and if the method name isn't a buildin.
That's really annoying.
-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; |