diff --git a/Frameworks/DocumentWindow/src/DocumentWindowController.mm b/Frameworks/DocumentWindow/src/DocumentWindowController.mm index be63cb59..ff188b79 100644 --- a/Frameworks/DocumentWindow/src/DocumentWindowController.mm +++ b/Frameworks/DocumentWindow/src/DocumentWindowController.mm @@ -34,6 +34,7 @@ #import #import #import +#import static NSString* const kUserDefaultsAlwaysFindInDocument = @"alwaysFindInDocument"; static NSString* const kUserDefaultsDisableFolderStateRestore = @"disableFolderStateRestore"; @@ -1030,6 +1031,7 @@ static NSArray* const kObservedKeyPaths = @[ @"arrayController.arrangedObjects.p } [self makeTextViewFirstResponder:self]; + crash_reporter_info_t crashInfo(text::format("old selected document ā€˜%s’, new selected document ā€˜%s’", [_selectedDocument.displayName UTF8String] ?: "nil", [document.displayName UTF8String] ?: "nil")); self.selectedDocument = document; [self performSelector:@selector(didOpenDocuemntInTextView:) withObject:self.documentView.textView afterDelay:0]; [document close];