1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

The checking for autostarting in the inspector now correctly starts the transfer if it is able to.

This commit is contained in:
Mitchell Livingston 2006-06-23 23:14:40 +00:00
parent 4151da3b5d
commit c8ce7ebd21
2 changed files with 4 additions and 7 deletions

View file

@ -1039,8 +1039,7 @@ static void sleepCallBack(void * controller, io_service_t y,
- (void) torrentStartSettingChange: (NSNotification *) notification - (void) torrentStartSettingChange: (NSNotification *) notification
{ {
Torrent * torrent = [notification object]; [self attemptToStartAuto: [notification object]];
[self attemptToStartAuto: torrent];
[self updateUI: nil]; [self updateUI: nil];
[self updateTorrentHistory]; [self updateTorrentHistory];
@ -1050,7 +1049,6 @@ static void sleepCallBack(void * controller, io_service_t y,
- (void) attemptToStartAuto: (Torrent *) torrent - (void) attemptToStartAuto: (Torrent *) torrent
{ {
#warning should check if transfer was already done #warning should check if transfer was already done
NSLog([torrent name]);
if (![torrent waitingToStart]) if (![torrent waitingToStart])
return; return;

View file

@ -471,9 +471,8 @@
- (void) setWaitToStart: (id) sender - (void) setWaitToStart: (id) sender
{ {
Torrent * torrent; #warning make work with multiples
NSEnumerator * enumerator = [fTorrents objectEnumerator]; Torrent * torrent = [fTorrents objectAtIndex: 0];
while ((torrent = [enumerator nextObject]))
[torrent setWaitToStart: [sender state]]; [torrent setWaitToStart: [sender state]];
[[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentStartSettingChange" object: torrent]; [[NSNotificationCenter defaultCenter] postNotificationName: @"TorrentStartSettingChange" object: torrent];