Object: get_signal_connection_list fixed

now returns only the connections for the signal argument, as specified
fixes #5329
This commit is contained in:
J08nY 2016-06-21 13:07:50 +02:00
parent 67a29bab74
commit 621b8d1324
No known key found for this signature in database
GPG key ID: 7F4A448FE68F329D

View file

@ -1320,14 +1320,16 @@ Array Object::_get_signal_connection_list(const String& p_signal) const{
for (List<Connection>::Element *E=conns.front();E;E=E->next()) {
Connection &c=E->get();
Dictionary rc;
rc["signal"]=c.signal;
rc["method"]=c.method;
rc["source"]=c.source;
rc["target"]=c.target;
rc["binds"]=c.binds;
rc["flags"]=c.flags;
ret.push_back(rc);
if (c.signal == p_signal){
Dictionary rc;
rc["signal"]=c.signal;
rc["method"]=c.method;
rc["source"]=c.source;
rc["target"]=c.target;
rc["binds"]=c.binds;
rc["flags"]=c.flags;
ret.push_back(rc);
}
}
return ret;