summaryrefslogtreecommitdiff
path: root/src/gui/windows/editserverdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-07 22:54:40 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-07 22:54:40 +0300
commita6a60342beacd628626c861b835688babcddcca0 (patch)
treedfebf033a2fb32137792b9ef3a4b6ece3a7d4107 /src/gui/windows/editserverdialog.cpp
parentad6ed5131f02cdcba89cfeab3a23ed4ead3db52c (diff)
downloadmv-a6a60342beacd628626c861b835688babcddcca0.tar.gz
mv-a6a60342beacd628626c861b835688babcddcca0.tar.bz2
mv-a6a60342beacd628626c861b835688babcddcca0.tar.xz
mv-a6a60342beacd628626c861b835688babcddcca0.zip
Move max packet version constant into separate file.
Diffstat (limited to 'src/gui/windows/editserverdialog.cpp')
-rw-r--r--src/gui/windows/editserverdialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/windows/editserverdialog.cpp b/src/gui/windows/editserverdialog.cpp
index 9fa71b1f4..154dca6b4 100644
--- a/src/gui/windows/editserverdialog.cpp
+++ b/src/gui/windows/editserverdialog.cpp
@@ -21,6 +21,8 @@
#include "gui/windows/editserverdialog.h"
+#include "const/net/maxpacketversion.h"
+
#include "gui/models/typelistmodel.h"
#include "gui/windows/okdialog.h"
@@ -50,7 +52,7 @@ EditServerDialog::EditServerDialog(ServerDialog *const parent,
mNameField(new TextField(this, std::string())),
mDescriptionField(new TextField(this, std::string())),
mOnlineListUrlField(new TextField(this, std::string())),
- mPacketVersionField(new IntTextField(this, 0, 0, 20150805)),
+ mPacketVersionField(new IntTextField(this, 0, 0, maxPacketVersion)),
// TRANSLATORS: edit server dialog button
mConnectButton(new Button(this, _("Connect"), "connect", this)),
// TRANSLATORS: edit server dialog button