diff options
Diffstat (limited to 'src/gui/windows/shopwindow.cpp')
-rw-r--r-- | src/gui/windows/shopwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/windows/shopwindow.cpp b/src/gui/windows/shopwindow.cpp index 67c076912..8f858b0fe 100644 --- a/src/gui/windows/shopwindow.cpp +++ b/src/gui/windows/shopwindow.cpp @@ -417,8 +417,9 @@ void ShopWindow::updateButtonsAndLabels() const bool sellNotEmpty = mSellShopItems->getNumberOfElements() > 0; if (isBuySelected) { - allowAdd = !mEnableVending; - allowDel = mBuyShopItemList->getSelected() != -1 + allowAdd = !mEnableBuyingStore; + allowDel = !mEnableBuyingStore + && mBuyShopItemList->getSelected() != -1 && mBuyShopItems->getNumberOfElements() > 0; if (mPublishButton) { |