diff --git a/src/gui/qt/settingsdialog.ui b/src/gui/qt/settingsdialog.ui
index a6d320cc..138934c3 100644
--- a/src/gui/qt/settingsdialog.ui
+++ b/src/gui/qt/settingsdialog.ui
@@ -1626,6 +1626,13 @@ p, li { white-space: pre-wrap; }
false
+ -
+
+
+ Server Password:
+
+
+
-
@@ -1636,13 +1643,20 @@ p, li { white-space: pre-wrap; }
- -
+
-
60
+ -
+
+
+ Avatar Server:
+
+
+
-
@@ -1653,7 +1667,7 @@ p, li { white-space: pre-wrap; }
- -
+
-
80
@@ -1666,16 +1680,16 @@ p, li { white-space: pre-wrap; }
- -
-
-
- Avatar Server:
+
-
+
+
+ -
+
+
+ QLineEdit::Password
- -
-
-
diff --git a/src/gui/qt/settingsdialog/settingsdialogimpl.cpp b/src/gui/qt/settingsdialog/settingsdialogimpl.cpp
index 82153aca..bc66afb7 100644
--- a/src/gui/qt/settingsdialog/settingsdialogimpl.cpp
+++ b/src/gui/qt/settingsdialog/settingsdialogimpl.cpp
@@ -239,6 +239,7 @@ void settingsDialogImpl::prepareDialog()
lineEdit_InternetServerListAddress->setText(QString::fromUtf8(myConfig->readConfigString("InternetServerListAddress").c_str()));
lineEdit_InternetServerAddress->setText(QString::fromUtf8(myConfig->readConfigString("InternetServerAddress").c_str()));
+ lineEdit_InternetServerPassword->setText(QString::fromUtf8(QByteArray::fromBase64(myConfig->readConfigString("ServerPassword").c_str())));
spinBox_InternetServerPort->setValue(myConfig->readConfigInt("InternetServerPort"));
checkBox_InternetServerUseIpv6->setChecked(myConfig->readConfigInt("InternetServerUseIpv6"));
checkBox_InternetServerUseSctp->setChecked(myConfig->readConfigInt("InternetServerUseSctp"));
@@ -691,6 +692,7 @@ void settingsDialogImpl::isAccepted()
myConfig->writeConfigInt("InternetServerConfigMode", 1);
myConfig->writeConfigString("InternetServerAddress", lineEdit_InternetServerAddress->text().toUtf8().constData());
+ myConfig->writeConfigString("ServerPassword", lineEdit_InternetServerPassword->text().toUtf8().toBase64().constData());
myConfig->writeConfigInt("InternetServerPort", spinBox_InternetServerPort->value());
}
if(checkBox_useAvatarServer->isChecked()) {