aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPAppController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPAppController.m')
-rw-r--r--Source/SPAppController.m26
1 files changed, 26 insertions, 0 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index 6ba6175d..9feea4e9 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -82,6 +82,10 @@
*/
- (void)applicationDidFinishLaunching:(NSNotification *)notification
{
+ // Set ourselves as the crash reporter delegate
+ [[FRFeedbackReporter sharedReporter] setDelegate:self];
+
+ // Report any crashes
[[FRFeedbackReporter sharedReporter] reportIfCrash];
}
@@ -411,6 +415,28 @@
}
#pragma mark -
+#pragma mark Feedback reporter delegate methods
+
+/**
+ * Anonymises the preferences dictionary before feedback submission
+ */
+- (NSMutableDictionary*) anonymizePreferencesForFeedbackReport:(NSMutableDictionary *)preferences
+{
+ [preferences removeObjectsForKeys:[NSArray arrayWithObjects:@"ContentFilters",
+ @"favorites",
+ @"lastSqlFileName",
+ @"NSNavLastRootDirectory",
+ @"openPath",
+ @"queryFavorites",
+ @"queryHistory",
+ @"tableColumnWidths",
+ @"savePath",
+ nil]];
+
+ return preferences;
+}
+
+#pragma mark -
#pragma mark Other methods
/**