Object: get_signal_connection_list fixed
now returns only the connections for the signal argument, as specified fixes #5329
This commit is contained in:
parent
67a29bab74
commit
621b8d1324
1 changed files with 10 additions and 8 deletions
|
@ -1320,6 +1320,7 @@ Array Object::_get_signal_connection_list(const String& p_signal) const{
|
||||||
for (List<Connection>::Element *E=conns.front();E;E=E->next()) {
|
for (List<Connection>::Element *E=conns.front();E;E=E->next()) {
|
||||||
|
|
||||||
Connection &c=E->get();
|
Connection &c=E->get();
|
||||||
|
if (c.signal == p_signal){
|
||||||
Dictionary rc;
|
Dictionary rc;
|
||||||
rc["signal"]=c.signal;
|
rc["signal"]=c.signal;
|
||||||
rc["method"]=c.method;
|
rc["method"]=c.method;
|
||||||
|
@ -1329,6 +1330,7 @@ Array Object::_get_signal_connection_list(const String& p_signal) const{
|
||||||
rc["flags"]=c.flags;
|
rc["flags"]=c.flags;
|
||||||
ret.push_back(rc);
|
ret.push_back(rc);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue