diff options
Diffstat (limited to 'src/gui/sell.cpp')
-rw-r--r-- | src/gui/sell.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp index 6bac0bb1..2a2a591e 100644 --- a/src/gui/sell.cpp +++ b/src/gui/sell.cpp @@ -125,6 +125,11 @@ void SellDialog::reset() m_amountItems = 0; quantityLabel->setCaption("0"); quantityLabel->adjustSize(); + + // Reset Previous Selected Items to prevent failing asserts + itemList->setSelected(-1); + increaseButton->setEnabled(false); + decreaseButton->setEnabled(false); } void SellDialog::addItem(short index, int price) |