diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2009-10-04 13:23:47 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2009-10-04 13:23:47 +0200 |
commit | 7b6ddb687ceb1faf1b100929c501ab403e3e63de (patch) | |
tree | 82ea5890bb700799540bdb39f1ae066a6431f3b6 /src/net | |
parent | 69217e82e8631bbb2183a1322d0985a495c52f5e (diff) | |
download | mana-7b6ddb687ceb1faf1b100929c501ab403e3e63de.tar.gz mana-7b6ddb687ceb1faf1b100929c501ab403e3e63de.tar.bz2 mana-7b6ddb687ceb1faf1b100929c501ab403e3e63de.tar.xz mana-7b6ddb687ceb1faf1b100929c501ab403e3e63de.zip |
Made sure the server information updates when dragging the server list
It was only updating on click events, due to using ActionListener
instead of SelectionListener.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/serverinfo.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/net/serverinfo.h b/src/net/serverinfo.h index ac2e803d..ebc67722 100644 --- a/src/net/serverinfo.h +++ b/src/net/serverinfo.h @@ -24,7 +24,9 @@ #include <string> -typedef struct SERVER_INFO { +class ServerInfo +{ +public: std::string hostname; unsigned short port; @@ -34,10 +36,10 @@ typedef struct SERVER_INFO { port = 0; } - bool operator==(struct SERVER_INFO other) + bool operator==(const ServerInfo &other) { return (hostname == other.hostname && port == other.port); } -} ServerInfo; +}; #endif // SERVERINFO_H |