Prompt user when quitting with active downloads. Remove js debug logging.

This commit is contained in:
Paul Chote
2010-11-25 13:46:06 +13:00
parent 77a35fd132
commit efad699d4b
3 changed files with 37 additions and 20 deletions

View File

@@ -114,6 +114,10 @@
{
status = @"ERROR";
error = @"Download Cancelled";
[[NSFileManager defaultManager] removeItemAtPath:filename error:NULL];
bytesCompleted = bytesTotal = -1;
[[JSBridge sharedInstance] notifyDownloadProgress:self];
[[NSNotificationCenter defaultCenter] removeObserver:self
name:NSFileHandleReadCompletionNotification