diff --git a/modules/corelib/ui/uitable.lua b/modules/corelib/ui/uitable.lua index aee0f811..0ba3c05b 100644 --- a/modules/corelib/ui/uitable.lua +++ b/modules/corelib/ui/uitable.lua @@ -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 diff --git a/modules/game_market/market.lua b/modules/game_market/market.lua index 95f36ad5..875a15f7 100644 --- a/modules/game_market/market.lua +++ b/modules/game_market/market.lua @@ -740,7 +740,6 @@ function Market.clearSelectedItem() clearOffers() radioItemSet:selectWidget(nil) nameLabel:setText('No item selected.') - selectedItem:setItem(nil) detailsTable:clearData() diff --git a/modules/game_outfit/outfit.lua b/modules/game_outfit/outfit.lua index a17848c2..aa9c2664 100644 --- a/modules/game_outfit/outfit.lua +++ b/modules/game_outfit/outfit.lua @@ -150,7 +150,7 @@ function destroy() currentColorBox = nil currentClotheButtonBox = nil colorBoxes = {} - addons = nil + addons = {} end end