diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/inventorywindow.cpp | 5 | ||||
-rw-r--r-- | src/gui/inventorywindow.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp index 8a18cd0d..372e94d3 100644 --- a/src/gui/inventorywindow.cpp +++ b/src/gui/inventorywindow.cpp @@ -253,6 +253,11 @@ void InventoryWindow::valueChanged(const gcn::SelectionEvent &event) } } +void InventoryWindow::setSplitAllowed(bool allowed) +{ + mSplitButton->setVisible(allowed); +} + void InventoryWindow::updateButtons() { const Item *selectedItem = mItems->getSelectedItem(); diff --git a/src/gui/inventorywindow.h b/src/gui/inventorywindow.h index 1c8db89c..6e34666d 100644 --- a/src/gui/inventorywindow.h +++ b/src/gui/inventorywindow.h @@ -91,6 +91,11 @@ class InventoryWindow : public Window, */ void valueChanged(const gcn::SelectionEvent &event); + /** + * Sets whether the split button should be shown. + */ + void setSplitAllowed(bool allowed); + private: void updateButtons(); /**< Updates button states. */ |