diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2011-02-19 11:28:08 -0800 |
---|---|---|
committer | Stefan Dombrowski <stefan@uni-bonn.de> | 2011-02-19 20:46:04 +0100 |
commit | 651a83db1d5e732a313c987a0518a868e8ec09b7 (patch) | |
tree | 961267767317565543b0661c4c481b08fdf6e7ba /src/gui/popupmenu.cpp | |
parent | 93e6f5ae132cda24eb87a6c7ddbe7487fa97de1f (diff) | |
download | mana-651a83db1d5e732a313c987a0518a868e8ec09b7.tar.gz mana-651a83db1d5e732a313c987a0518a868e8ec09b7.tar.bz2 mana-651a83db1d5e732a313c987a0518a868e8ec09b7.tar.xz mana-651a83db1d5e732a313c987a0518a868e8ec09b7.zip |
Reorder store option to the top, so it is more useful.
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r-- | src/gui/popupmenu.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index 409a0eda..fa068cda 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -344,6 +344,11 @@ void PopupMenu::showPopup(Window *parent, int x, int y, Item *item, if (isInventory) { + if (InventoryWindow::isStorageActive()) + { + mBrowserBox->addRow(strprintf("@@store|%s@@", _("Store"))); + } + if (item->isEquipment()) { if (item->isEquipped()) @@ -363,11 +368,6 @@ void PopupMenu::showPopup(Window *parent, int x, int y, Item *item, { mBrowserBox->addRow(strprintf("@@split|%s@@", _("Split"))); } - - if (InventoryWindow::isStorageActive()) - { - mBrowserBox->addRow(strprintf("@@store|%s@@", _("Store"))); - } } // Assume in storage for now // TODO: make this whole system more flexible, if needed |