Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Classes/ItemDBControl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ function ItemDBClass:Draw(viewPort)
end

function ItemDBClass:GetRowValue(column, index, item)
if column == 1 then
if item and column == 1 then
return colorCodes[item.rarity] .. item.name
end
end
Expand Down Expand Up @@ -359,6 +359,10 @@ function ItemDBClass:OnSelClick(index, item, doubleClick)
self.itemsTab:AddUndoState()
self.itemsTab.build.buildFlag = true
elseif doubleClick then
-- disallow dragging after double click since the window can jump when
-- the display item tooltip is created, which might cause the drag item
-- to get stuck to the cursor
self.selDragging = false
self.itemsTab:CreateDisplayItemFromRaw(item.raw, true)
return false
end
Expand Down
Loading