From 3b583bf3310f1eead6259084d25438261d70b16d Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Tue, 24 Jan 2012 20:22:56 -0200 Subject: [PATCH] fix connect --- modules/core_lib/util.lua | 17 +++++++++-------- modules/core_styles/icons/about.png | Bin 763 -> 0 bytes modules/core_styles/icons/settings.png | Bin 660 -> 0 bytes modules/core_styles/icons/terminal.png | Bin 459 -> 0 bytes modules/core_styles/icons/viplist.png | Bin 928 -> 0 bytes modules/core_styles/images/consolebutton.png | Bin 415 -> 0 bytes 6 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 modules/core_styles/icons/about.png delete mode 100644 modules/core_styles/icons/settings.png delete mode 100644 modules/core_styles/icons/terminal.png delete mode 100644 modules/core_styles/icons/viplist.png delete mode 100644 modules/core_styles/images/consolebutton.png diff --git a/modules/core_lib/util.lua b/modules/core_lib/util.lua index b91829fd..a81cec8a 100644 --- a/modules/core_lib/util.lua +++ b/modules/core_lib/util.lua @@ -21,15 +21,16 @@ end function connect(object, signalsAndSlots, pushFront) for signal,slot in pairs(signalsAndSlots) do if not object[signal] then - object[signal] = slot + object[signal] = slot elseif type(object[signal]) == 'function' then - object[signal] = { object[signal], slot } - elseif type(object[signal]) == 'table' then - if pushFront then - table.insert(object[signal], 1, slot) - else - table.insert(object[signal], #object[signal]+1, slot) - end + object[signal] = { object[signal] } + end + if type(object[signal]) == 'table' then + if pushFront then + table.insert(object[signal], 1, slot) + else + table.insert(object[signal], #object[signal]+1, slot) + end end end end diff --git a/modules/core_styles/icons/about.png b/modules/core_styles/icons/about.png deleted file mode 100644 index 5e30545c4e5e5ddb8faa9a5d95740735bba14195..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 763 zcmVPx#24YJ`L;wH)0002_L%V+f000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2ipq) z1{n?mbm)};0013nR9JLFZ*6U5Zgc_CX>@2HM@dakWG-a~0006~ zNklA#8?$^vt$%tAy36f+QhT)TQ&0<`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