fix popupmenu, fix mouserelease events, fix connect

This commit is contained in:
Eduardo Bart
2012-02-09 04:42:07 -02:00
parent 8545d15304
commit c707f990bf
3 changed files with 13 additions and 7 deletions

View File

@@ -22,7 +22,7 @@ function connect(object, signalsAndSlots, pushFront)
for signal,slot in pairs(signalsAndSlots) do
if not object[signal] then
local mt = getmetatable(object)
if mt then
if mt and type(object) == 'userdata' then
object[signal] = function(...)
return signalcall(mt[signal], ...)
end