diff options
Diffstat (limited to 'src/gui/windows/shopwindow.cpp')
-rw-r--r-- | src/gui/windows/shopwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp index eb28639f8..6bd298e2b 100644 --- a/src/gui/windows/shopwindow.cpp +++ b/src/gui/windows/shopwindow.cpp @@ -439,7 +439,6 @@ void ShopWindow::updateButtonsAndLabels() { bool allowDel(false); bool allowAdd(false); - const bool sellNotEmpty = mSellShopItems->getNumberOfElements() > 0; if (isBuySelected) { allowAdd = !mEnableBuyingStore; @@ -467,6 +466,7 @@ void ShopWindow::updateButtonsAndLabels() } else { + const bool sellNotEmpty = mSellShopItems->getNumberOfElements() > 0; allowAdd = !mEnableVending && mSelectedItem != -1; allowDel = !mEnableVending && mSellShopItemList->getSelected() != -1 |