diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-03 21:23:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-03 21:23:24 +0300 |
commit | 808a0b7aeb9c58724d3ac2e1a8bb8f3d3c2bdb1e (patch) | |
tree | 208f3224627dea587f8f87b31459e721153e83ba /src/gui/windows/socialwindow.h | |
parent | d0db8d81ebf49b0e3c9872152cb5749f701cb9d6 (diff) | |
download | mv-808a0b7aeb9c58724d3ac2e1a8bb8f3d3c2bdb1e.tar.gz mv-808a0b7aeb9c58724d3ac2e1a8bb8f3d3c2bdb1e.tar.bz2 mv-808a0b7aeb9c58724d3ac2e1a8bb8f3d3c2bdb1e.tar.xz mv-808a0b7aeb9c58724d3ac2e1a8bb8f3d3c2bdb1e.zip |
fix friend tab update in social window if friends was changed.
Diffstat (limited to 'src/gui/windows/socialwindow.h')
-rw-r--r-- | src/gui/windows/socialwindow.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/gui/windows/socialwindow.h b/src/gui/windows/socialwindow.h index 018b5f32c..e8dc44043 100644 --- a/src/gui/windows/socialwindow.h +++ b/src/gui/windows/socialwindow.h @@ -24,6 +24,8 @@ #include "gui/widgets/window.h" +#include "being/playerrelationslistener.h" + #include <guichan/actionlistener.hpp> #include <string> @@ -45,7 +47,9 @@ class TextDialog; * * \ingroup Interface */ -class SocialWindow final : public Window, private gcn::ActionListener +class SocialWindow final : public Window, + private gcn::ActionListener, + public PlayerRelationsListener { public: SocialWindow(); @@ -125,6 +129,10 @@ public: void updateGuildCounter(const int online = 0, const int total = 0); + void updatedPlayer(const std::string &name); + + void updateAll(); + #ifdef USE_PROFILER void logicChildren(); #endif |