diff options
author | Mateusz Kaduk <mateusz.kaduk@gmail.com> | 2005-06-18 13:36:54 +0000 |
---|---|---|
committer | Mateusz Kaduk <mateusz.kaduk@gmail.com> | 2005-06-18 13:36:54 +0000 |
commit | 6040daae3201e4a4cc55c2754c73225752fd4c5f (patch) | |
tree | 7f1c15a6bd50b6c1773077e28f736c11178c79d8 /src/gui/popupmenu.cpp | |
parent | 275b80eca0ecc71262b4ca8aeba6e7501f711d43 (diff) | |
download | mana-6040daae3201e4a4cc55c2754c73225752fd4c5f.tar.gz mana-6040daae3201e4a4cc55c2754c73225752fd4c5f.tar.bz2 mana-6040daae3201e4a4cc55c2754c73225752fd4c5f.tar.xz mana-6040daae3201e4a4cc55c2754c73225752fd4c5f.zip |
Showing buddyWindow
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r-- | src/gui/popupmenu.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index c56bdfc8..205a768f 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -174,8 +174,12 @@ void PopupMenu::handleLink(const std::string& link) } // Add Buddy action - else if (link == "buddy") + else if ((link == "buddy") && being && being->isPlayer()) { + if(!buddyWindow->isVisible()) + buddyWindow->setVisible(true); + + buddyWindow->addBuddy(being->name); } // Pick Up Floor Item action |