Read hostname and pin from config file if available.

This commit is contained in:
codestation
2015-03-22 22:27:00 -04:30
parent 380f3049da
commit 023d46cf0f
3 changed files with 22 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ CmaBroadcast::CmaBroadcast(QObject *obj_parent) :
settings.setValue("guid", uuid);
}
hostname = QHostInfo::localHostName();
hostname = settings.value("hostName", QHostInfo::localHostName()).toString();
setAvailable();
socket = new QUdpSocket(this);