From 7b6ddb687ceb1faf1b100929c501ab403e3e63de Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sun, 4 Oct 2009 13:23:47 +0200 Subject: 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. --- src/net/serverinfo.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/net') 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 -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 -- cgit v1.2.3-70-g09d2