summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Felipe <guilhermefelipecgs@gmail.com>2019-04-23 13:36:30 -0300
committerGuilherme Felipe <guilhermefelipecgs@gmail.com>2019-04-23 13:39:16 -0300
commitd8de9cc20fe08092beb8b346779a78e8f6bc9e8e (patch)
tree23e87bd180e8217368a47398bf4d5ddb1b151bce
parent6098a7f1914f64c77d689f54d5432095911b744f (diff)
Small fixes to connection dialog
-rw-r--r--editor/connections_dialog.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp
index 685c5de76c..03a71f3248 100644
--- a/editor/connections_dialog.cpp
+++ b/editor/connections_dialog.cpp
@@ -141,6 +141,9 @@ void ConnectDialog::_tree_node_selected() {
Node *current = tree->get_selected();
+ if (!current)
+ return;
+
dst_path = source->get_path_to(current);
get_ok()->set_disabled(false);
}
@@ -309,6 +312,7 @@ void ConnectDialog::popup_dialog(const String &p_for_signal, bool p_advanced) {
advanced->set_pressed(p_advanced);
from_signal->set_text(p_for_signal);
error_label->add_color_override("font_color", get_color("error_color", "Editor"));
+ vbc_right->set_visible(p_advanced);
if (p_advanced) {
@@ -330,7 +334,7 @@ void ConnectDialog::popup_dialog(const String &p_for_signal, bool p_advanced) {
}
void ConnectDialog::_advanced_pressed() {
- vbc_right->set_visible(advanced->is_pressed());
+
popup_dialog(from_signal->get_text(), advanced->is_pressed());
}
@@ -414,7 +418,7 @@ ConnectDialog::ConnectDialog() {
advanced = memnew(CheckBox);
dstm_hb->add_child(advanced);
- advanced->set_text(TTR("Advanced.."));
+ advanced->set_text(TTR("Advanced..."));
advanced->connect("pressed", this, "_advanced_pressed");
/*