Revision: 7579
http://skim-app.svn.sourceforge.net/skim-app/?rev=7579&view=rev
Author: hofman
Date: 2011-12-16 16:19:11 +0000 (Fri, 16 Dec 2011)
Log Message:
-----------
only show download context menu items for file when the file exists
Modified Paths:
--------------
trunk/SKDownloadController.m
Modified: trunk/SKDownloadController.m
===================================================================
--- trunk/SKDownloadController.m 2011-12-16 15:07:18 UTC (rev 7578)
+++ trunk/SKDownloadController.m 2011-12-16 16:19:11 UTC (rev 7579)
@@ -485,7 +485,7 @@
menuItem = [menu addItemWithTitle:NSLocalizedString(@"Resume",
@"Menu item title") action:@selector(resumeDownload:) target:self];
[menuItem setRepresentedObject:download];
}
- if ([download status] == SKDownloadStatusFinished) {
+ if ([download status] == SKDownloadStatusFinished && [[NSFileManager
defaultManager] fileExistsAtPath:[download filePath]]) {
menuItem = [menu addItemWithTitle:[NSLocalizedString(@"Open",
@"Menu item title") stringByAppendingEllipsis]
action:@selector(openDownloadedFile:) target:self];
[menuItem setRepresentedObject:download];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit