From 181e74855e2c6e9523030d2b36019cd70d26e564 Mon Sep 17 00:00:00 2001 From: asynts Date: Tue, 14 Jan 2020 18:58:26 +0100 Subject: 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. --- editor/connections_dialog.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(c.source); signal = c.signal; -- cgit v1.2.3