Merge pull request #145 from Estajxo/master

Prevent computer name / host name from being deleted between sessions.
This commit is contained in:
Laurent Clouet
2018-04-07 21:30:27 +02:00
committed by GitHub

View File

@@ -611,9 +611,9 @@ public class Settings implements Activity {
cachePath = config.getStorageDir().getAbsolutePath();
}
String hostnameText = null;
if (hostname.getText() != null && hostname.getText().equals(parent.getConfiguration().getHostname()) == false) {
hostnameText = hostname.getText();
String hostnameText = hostname.getText();
if (hostnameText == null || hostnameText.isEmpty()) {
hostnameText = parent.getConfiguration().getHostname();
}
if (saveFile.isSelected()) {