summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-14 15:36:21 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-14 15:36:21 +0300
commit5781d238e97689be482c5ac691143ce35e3e278e (patch)
treec5e362c2e7ebbef874dadb6a2d22a1733d16efdd /src/gui/popups/popupmenu.cpp
parent653087c6ffd0f5f4245f6f3a2e18d4e7129070c0 (diff)
downloadManaVerse-5781d238e97689be482c5ac691143ce35e3e278e.tar.gz
ManaVerse-5781d238e97689be482c5ac691143ce35e3e278e.tar.bz2
ManaVerse-5781d238e97689be482c5ac691143ce35e3e278e.tar.xz
ManaVerse-5781d238e97689be482c5ac691143ce35e3e278e.zip
Move playerlistener into separate file.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index c284b92a0..7629bf9ed 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -2900,25 +2900,3 @@ void PopupMenu::showGMPopup()
showPopup(getX(), getY());
}
-
-PlayerListener::PlayerListener() :
- ActionListener(),
- mNick(),
- mDialog(nullptr),
- mType(static_cast<int>(ActorType::UNKNOWN))
-{
-}
-
-void PlayerListener::action(const ActionEvent &event)
-{
- if (event.getId() == "ok" && !mNick.empty() && mDialog)
- {
- std::string comment = mDialog->getText();
- Being *const being = actorManager->findBeingByName(
- mNick, static_cast<ActorType::Type>(mType));
- if (being)
- being->setComment(comment);
- Being::saveComment(mNick, comment, mType);
- }
- mDialog = nullptr;
-}