Showing the changes to interface/src/Menu.cpp (1 of 6 files). Show all
Unified · Split
| @@ -858,7 +858,14 @@ void Menu::editPreferences() { · 857 unmodified lines | |||
| 858 | applicationInstance->getAvatar()->setSkeletonModelURL(skeletonModelURL); | 858 | applicationInstance->getAvatar()->setSkeletonModelURL(skeletonModelURL); |
| 859 | shouldDispatchIdentityPacket = true; | 859 | shouldDispatchIdentityPacket = true; |
| 860 | } | 860 | } |
| 861 | |||
| 862 | QString displayNameStr(displayNameEdit->text()); | ||
| 861 | 863 | ||
| 864 | if (displayNameStr != displayNameString) { | ||
| 865 | applicationInstance->getAvatar()->setDisplayName(displayNameStr); | ||
| 866 | shouldDispatchIdentityPacket = true; | ||
| 867 | } | ||
| 868 | |||
| 862 | if (shouldDispatchIdentityPacket) { | 869 | if (shouldDispatchIdentityPacket) { |
| 863 | applicationInstance->getAvatar()->sendIdentityPacket(); | 870 | applicationInstance->getAvatar()->sendIdentityPacket(); |
| 864 | } | 871 | } |