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
1212
1313 #include "Application.h"
1414 #include "Menu.h"
15−#include "PreferencesDialog.h"
1615 #include "ModelsBrowser.h"
16+#include "PreferencesDialog.h"
17+#include "UserActivityLogger.h"
1718
1819 const int SCROLL_PANEL_BOTTOM_MARGIN = 30;
1920 const int OK_BUTTON_RIGHT_MARGIN = 30;
@@ -176,6 +177,7 @@ void PreferencesDialog::savePreferences() { · 156 unmodified lines
176177 QString displayNameStr(ui.displayNameEdit->text());
177178 if (displayNameStr != _displayNameString) {
178179 myAvatar->setDisplayName(displayNameStr);
180+ UserActivityLogger::getInstance().changedDisplayName(displayNameStr);
179181 shouldDispatchIdentityPacket = true;
180182 }
181183
@@ -183,6 +185,7 @@ void PreferencesDialog::savePreferences() { · 1 unmodified line
183185 if (faceModelURL.toString() != _faceURLString) {
184186 // change the faceModelURL in the profile, it will also update this user's BlendFace
185187 myAvatar->setFaceModelURL(faceModelURL);
188+ UserActivityLogger::getInstance().changedModel("head", faceModelURL.toString());
186189 shouldDispatchIdentityPacket = true;
187190 }
188191
@@ -190,6 +193,7 @@ void PreferencesDialog::savePreferences() { · 1 unmodified line
190193 if (skeletonModelURL.toString() != _skeletonURLString) {
191194 // change the skeletonModelURL in the profile, it will also update this user's Body
192195 myAvatar->setSkeletonModelURL(skeletonModelURL);
196+ UserActivityLogger::getInstance().changedModel("skeleton", skeletonModelURL.toString());
193197 shouldDispatchIdentityPacket = true;
194198 }
195199