if a transfer does not start because of not enough disk space, start next in queue

This commit is contained in:
Mitchell Livingston 2006-10-11 19:01:49 +00:00
parent 5f87a757fb
commit de198e1c0a
1 changed files with 7 additions and 1 deletions

View File

@ -463,7 +463,13 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
[alert addButtonWithTitle: @"OK"];
[alert addButtonWithTitle: @"Download Anyway"];
return [alert runModal] != NSAlertFirstButtonReturn;
if ([alert runModal] == NSAlertFirstButtonReturn)
{
[[NSNotificationCenter defaultCenter] postNotificationName: @"StoppedDownloading" object: self];
return NO;
}
else
return YES;
}
return YES;
}