save profile to settings, fix UUID storage

This commit is contained in:
Stephen Birarda 2013-10-08 12:40:09 -07:00
parent ae59ce22b7
commit d843285db7
3 changed files with 6 additions and 3 deletions

View file

@ -32,7 +32,7 @@ private:
namespace DataServerKey { namespace DataServerKey {
const char FaceMeshURL[] = "mesh"; const char FaceMeshURL[] = "mesh";
const char UUID[] = ""; const char UUID[] = "uuid";
} }
#endif /* defined(__hifi__DataServerClient__) */ #endif /* defined(__hifi__DataServerClient__) */

View file

@ -527,6 +527,7 @@ void Menu::saveSettings(QSettings* settings) {
scanMenuBar(&saveAction, settings); scanMenuBar(&saveAction, settings);
Application::getInstance()->getAvatar()->saveData(settings); Application::getInstance()->getAvatar()->saveData(settings);
Application::getInstance()->getProfile()->saveData(settings);
Application::getInstance()->getSwatch()->saveData(settings); Application::getInstance()->getSwatch()->saveData(settings);
// ask the NodeList to save its data // ask the NodeList to save its data

View file

@ -29,8 +29,10 @@ void Profile::setUsername(const QString &username) {
this->clear(); this->clear();
_username = username; _username = username;
// we've been given a new username, ask the data-server for our UUID if (!_username.isEmpty()) {
DataServerClient::getClientValueForKey(DataServerKey::UUID); // we've been given a new username, ask the data-server for our UUID
DataServerClient::getClientValueForKey(DataServerKey::UUID);
}
} }
void Profile::saveData(QSettings* settings) { void Profile::saveData(QSettings* settings) {