diff RatPageModel.lua @ 1:a4e2eaf9cad9

Initial Fixes for ticket 1: Added a menu to the interface options page to allow the syncing of the addon to the mouse profile. This should resolve i8n issues
author madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09
date Wed, 23 May 2012 08:26:07 +0000
parents bf9220814fb5
children d186f8cd5000
line wrap: on
line diff
--- a/RatPageModel.lua	Tue Jan 24 17:14:21 2012 +0000
+++ b/RatPageModel.lua	Wed May 23 08:26:07 2012 +0000
@@ -111,7 +111,7 @@
 			self.Data[mode][button] = object;
 
 			if(nil ~= object) then
-				object.SetBinding(WowCommands[GetLocale()][((mode-1)*RAT7.BUTTONS)+button]);
+				object.SetBinding(WowCommands[((mode-1)*RAT7.BUTTONS)+button]);
 				if("callback" == object.Type) then
 					msg("trying to set texture")
 					local slot = getglobal("defaultPageSlot"..button);
@@ -119,7 +119,7 @@
 				end
 			else
 				msg("clearing "..button)
-				WowObject.ClearBinding(WowCommands[GetLocale()][((mode-1)*RAT7.BUTTONS)+button])
+				WowObject.ClearBinding(WowCommands[((mode-1)*RAT7.BUTTONS)+button])
 			end
 		end