summaryrefslogtreecommitdiff
path: root/src/gui/windows/editserverdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-26 19:34:40 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-26 19:34:40 +0300
commit81145e509cdba68c94c4173e16ddd492cd813db8 (patch)
tree3603449bfdd5e2d357b240cdaa5cead9b4077a1f /src/gui/windows/editserverdialog.cpp
parent5e7a4e68d73eb9adcb72de9d7e2b0e592f2c58cc (diff)
downloadmanaverse-81145e509cdba68c94c4173e16ddd492cd813db8.tar.gz
manaverse-81145e509cdba68c94c4173e16ddd492cd813db8.tar.bz2
manaverse-81145e509cdba68c94c4173e16ddd492cd813db8.tar.xz
manaverse-81145e509cdba68c94c4173e16ddd492cd813db8.zip
Remove default parameters from textfield.
Diffstat (limited to 'src/gui/windows/editserverdialog.cpp')
-rw-r--r--src/gui/windows/editserverdialog.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/gui/windows/editserverdialog.cpp b/src/gui/windows/editserverdialog.cpp
index 3b454466f..a659612fb 100644
--- a/src/gui/windows/editserverdialog.cpp
+++ b/src/gui/windows/editserverdialog.cpp
@@ -47,11 +47,16 @@ EditServerDialog::EditServerDialog(ServerDialog *const parent,
Window(_("Edit Server"), Modal_true, parent),
ActionListener(),
KeyListener(),
- mServerAddressField(new TextField(this, std::string())),
- mPortField(new TextField(this, std::string())),
- mNameField(new TextField(this, std::string())),
- mDescriptionField(new TextField(this, std::string())),
- mOnlineListUrlField(new TextField(this, std::string())),
+ mServerAddressField(new TextField(this, std::string(),
+ LoseFocusOnTab_true, nullptr, std::string(), false)),
+ mPortField(new TextField(this, std::string(),
+ LoseFocusOnTab_true, nullptr, std::string(), false)),
+ mNameField(new TextField(this, std::string(),
+ LoseFocusOnTab_true, nullptr, std::string(), false)),
+ mDescriptionField(new TextField(this, std::string(),
+ LoseFocusOnTab_true, nullptr, std::string(), false)),
+ mOnlineListUrlField(new TextField(this, std::string(),
+ LoseFocusOnTab_true, nullptr, std::string(), false)),
mPacketVersionField(new IntTextField(this, 0, 0, maxPacketVersion,
Enable_true, 0)),
// TRANSLATORS: edit server dialog button