summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-06-24 18:26:34 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-06-24 18:26:34 -0300
commit30a94bcc9fe5f09418ba4210de4d3d433db48172 (patch)
tree8818d474f17abae444a5e5334440083421e5ff7f /tools
parent52308aba68516d4b4ca29a176d6053cf3f623ce4 (diff)
fix connection dialog bug
Diffstat (limited to 'tools')
-rw-r--r--tools/editor/connections_dialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/editor/connections_dialog.cpp b/tools/editor/connections_dialog.cpp
index 13612c8e7a..b0bacdae61 100644
--- a/tools/editor/connections_dialog.cpp
+++ b/tools/editor/connections_dialog.cpp
@@ -530,7 +530,7 @@ void ConnectionsDialog::ok_pressed() {
get_ok()->set_disabled(true);
return;
}
- if (item->get_parent()==tree->get_root()) {
+ if (item->get_parent()==tree->get_root() || item->get_parent()->get_parent()==tree->get_root()) {
//a signal - connect
String signal=item->get_metadata(0).operator Dictionary()["name"];
String signalname=signal;
@@ -778,7 +778,7 @@ void ConnectionsDialog::_something_selected() {
get_ok()->set_text("Connect..");
get_ok()->set_disabled(true);
- } else if (item->get_parent()==tree->get_root()) {
+ } else if (item->get_parent()==tree->get_root() || item->get_parent()->get_parent()==tree->get_root()) {
//a signal - connect
get_ok()->set_text("Connect..");
get_ok()->set_disabled(false);