History

Adding logger calls

Atlante45 committed 12 years ago

Commit f33ad8a1 parent e9dffc06 files · +55 −33Browse files

Showing the changes to interface/src/ui/PreferencesDialog.cpp (1 of 6 files). Show all

Unified · Split

interface/src/ui/PreferencesDialog.cpp+5−1
@@ -12,8 +12,9 @@ · 11 unmodified lines
12 12
13#include "Application.h"13#include "Application.h"
14#include "Menu.h"14#include "Menu.h"
15#include "PreferencesDialog.h"
16#include "ModelsBrowser.h"15#include "ModelsBrowser.h"
16#include "PreferencesDialog.h"
17#include "UserActivityLogger.h"
17 18
18const int SCROLL_PANEL_BOTTOM_MARGIN = 30;19const int SCROLL_PANEL_BOTTOM_MARGIN = 30;
19const int OK_BUTTON_RIGHT_MARGIN = 30;20const int OK_BUTTON_RIGHT_MARGIN = 30;
@@ -176,6 +177,7 @@ void PreferencesDialog::savePreferences() { · 156 unmodified lines
176 QString displayNameStr(ui.displayNameEdit->text());177 QString displayNameStr(ui.displayNameEdit->text());
177 if (displayNameStr != _displayNameString) {178 if (displayNameStr != _displayNameString) {
178 myAvatar->setDisplayName(displayNameStr);179 myAvatar->setDisplayName(displayNameStr);
180 UserActivityLogger::getInstance().changedDisplayName(displayNameStr);
179 shouldDispatchIdentityPacket = true;181 shouldDispatchIdentityPacket = true;
180 }182 }
181 183
@@ -183,6 +185,7 @@ void PreferencesDialog::savePreferences() { · 1 unmodified line
183 if (faceModelURL.toString() != _faceURLString) {185 if (faceModelURL.toString() != _faceURLString) {
184 // change the faceModelURL in the profile, it will also update this user's BlendFace186 // change the faceModelURL in the profile, it will also update this user's BlendFace
185 myAvatar->setFaceModelURL(faceModelURL);187 myAvatar->setFaceModelURL(faceModelURL);
188 UserActivityLogger::getInstance().changedModel("head", faceModelURL.toString());
186 shouldDispatchIdentityPacket = true;189 shouldDispatchIdentityPacket = true;
187 }190 }
188 191
@@ -190,6 +193,7 @@ void PreferencesDialog::savePreferences() { · 1 unmodified line
190 if (skeletonModelURL.toString() != _skeletonURLString) {193 if (skeletonModelURL.toString() != _skeletonURLString) {
191 // change the skeletonModelURL in the profile, it will also update this user's Body194 // change the skeletonModelURL in the profile, it will also update this user's Body
192 myAvatar->setSkeletonModelURL(skeletonModelURL);195 myAvatar->setSkeletonModelURL(skeletonModelURL);
196 UserActivityLogger::getInstance().changedModel("skeleton", skeletonModelURL.toString());
193 shouldDispatchIdentityPacket = true;197 shouldDispatchIdentityPacket = true;
194 }198 }
195 199