diff --git a/Image Opener/WindowController.m b/Image Opener/WindowController.m index ed1a3f3..dcafa7e 100644 --- a/Image Opener/WindowController.m +++ b/Image Opener/WindowController.m @@ -347,6 +347,12 @@ static unsigned ExtToTag(NSString *ext) - (void)windowWillClose:(NSNotification *)notification { + if (_filePath) + { + NSURL *url = [NSURL fileURLWithPath: _filePath isDirectory: NO]; + [[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL: url]; + } + [self release]; }