Some small fixes.

This commit is contained in:
BeniS 2012-07-31 00:33:10 +12:00
parent 52f81c53f9
commit 1281b04a6a
3 changed files with 4 additions and 3 deletions

View File

@ -128,7 +128,7 @@ function UITable:addRow(data, ref, height)
return
end
local row = g_ui.createWidget(self.rowBaseStyle, self.dataSpace)
local row = g_ui.createWidget(self.rowBaseStyle)
if ref then row.ref = ref end
if height then row:setHeight(height) end
@ -152,6 +152,8 @@ function UITable:addRow(data, ref, height)
row.onFocusChange = function(row, focused)
if focused then self:selectRow(row) end
end
self.dataSpace:addChild(row)
table.insert(self.rows, row)
return row
end

View File

@ -740,7 +740,6 @@ function Market.clearSelectedItem()
clearOffers()
radioItemSet:selectWidget(nil)
nameLabel:setText('No item selected.')
selectedItem:setItem(nil)
detailsTable:clearData()

View File

@ -150,7 +150,7 @@ function destroy()
currentColorBox = nil
currentClotheButtonBox = nil
colorBoxes = {}
addons = nil
addons = {}
end
end