From 8cf8f82d0b933dab43372fb0afdda58687ce6af6 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Wed, 23 Nov 2011 19:01:08 +0100 Subject: Added a modify button to the server dialog. This was righteously requested by Ablu as missing when dealing with one's own entries. Reviewed-by: Ablu --- src/gui/customserverdialog.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui/customserverdialog.h') diff --git a/src/gui/customserverdialog.h b/src/gui/customserverdialog.h index af19d9c7..a9f02abc 100644 --- a/src/gui/customserverdialog.h +++ b/src/gui/customserverdialog.h @@ -66,7 +66,7 @@ class CustomServerDialog : public Window, public gcn::KeyListener { public: - CustomServerDialog(ServerDialog *parent); + CustomServerDialog(ServerDialog *parent, int index = -1); ~CustomServerDialog(); @@ -91,6 +91,8 @@ class CustomServerDialog : public Window, TypeListModel *mTypeListModel; ServerDialog *mServerDialog; + // The index of the entry to modify, -1 when only adding a new entry. + int mIndex; }; #endif // CUSTOMSERVERDIALOG_H -- cgit v1.2.3-70-g09d2