Showing the changes to interface/src/Application.cpp (1 of 2 files). Show all
Unified · Split
| @@ -1140,6 +1140,14 @@ void Application::editPreferences() { · 1139 unmodified lines | |||
| 1140 | return; | 1140 | return; |
| 1141 | } | 1141 | } |
| 1142 | 1142 | ||
| 1143 | // check if the domain server hostname is new - if so we need to clear the nodelist and delete the local voxels | ||
| 1144 | const char* newHostname = domainServerHostname->text().toLocal8Bit().data(); | ||
| 1145 | |||
| 1146 | if (memcmp(NodeList::getInstance()->getDomainHostname(), newHostname, sizeof(&newHostname)) != 0) { | ||
| 1147 | NodeList::getInstance()->clear(); | ||
| 1148 | NodeList::getInstance()->setDomainHostname(newHostname); | ||
| 1149 | } | ||
| 1150 | |||
| 1143 | QUrl url(avatarURL->text()); | 1151 | QUrl url(avatarURL->text()); |
| 1144 | _myAvatar.getVoxels()->setVoxelURL(url); | 1152 | _myAvatar.getVoxels()->setVoxelURL(url); |
| 1145 | sendAvatarVoxelURLMessage(url); | 1153 | sendAvatarVoxelURLMessage(url); |