diff --git a/macosx/MessageWindowController.m b/macosx/MessageWindowController.m index 869c64e70..12fef7d10 100644 --- a/macosx/MessageWindowController.m +++ b/macosx/MessageWindowController.m @@ -139,9 +139,11 @@ - (void) windowDidBecomeKey: (NSNotification *) notification { if (!fTimer) + { fTimer = [NSTimer scheduledTimerWithTimeInterval: UPDATE_SECONDS target: self selector: @selector(updateLog:) userInfo: nil repeats: YES]; - [self updateLog: nil]; + [self updateLog: nil]; + } } - (void) windowWillClose: (id)sender diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 87d366290..cc6767df4 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -34,8 +34,7 @@ - (id) initWithPath: (NSString *) path hash: (NSString *) hashString torrentStruct: (tr_torrent *) torrentStruct lib: (tr_session *) lib waitToStart: (NSNumber *) waitToStart groupValue: (NSNumber *) groupValue - #warning legacy download folder isn't necessarily legacy - legacyDownloadFolder: (NSString *) downloadFolder legacyIncompleteFolder: (NSString *) incompleteFolder; + downloadFolder: (NSString *) downloadFolder legacyIncompleteFolder: (NSString *) incompleteFolder; - (void) createFileList; - (void) insertPath: (NSMutableArray *) components forParent: (FileListNode *) parent fileSize: (uint64_t) size @@ -81,7 +80,7 @@ int trashDataFile(const char * filename) { self = [self initWithPath: path hash: nil torrentStruct: NULL lib: lib waitToStart: nil groupValue: nil - legacyDownloadFolder: location legacyIncompleteFolder: nil]; + downloadFolder: location legacyIncompleteFolder: nil]; if (self) { @@ -95,7 +94,7 @@ int trashDataFile(const char * filename) { self = [self initWithPath: nil hash: nil torrentStruct: torrentStruct lib: lib waitToStart: nil groupValue: nil - legacyDownloadFolder: location legacyIncompleteFolder: nil]; + downloadFolder: location legacyIncompleteFolder: nil]; return self; } @@ -119,7 +118,7 @@ int trashDataFile(const char * filename) if (handle) self = [self initWithPath: nil hash: nil torrentStruct: handle lib: lib waitToStart: nil groupValue: nil - legacyDownloadFolder: location legacyIncompleteFolder: nil]; + downloadFolder: location legacyIncompleteFolder: nil]; else self = nil; @@ -133,7 +132,7 @@ int trashDataFile(const char * filename) torrentStruct: NULL lib: lib waitToStart: [history objectForKey: @"WaitToStart"] groupValue: [history objectForKey: @"GroupValue"] - legacyDownloadFolder: [history objectForKey: @"DownloadFolder"] //upgrading from versions < 1.80 + downloadFolder: [history objectForKey: @"DownloadFolder"] //upgrading from versions < 1.80 legacyIncompleteFolder: [[history objectForKey: @"UseIncompleteFolder"] boolValue] //upgrading from versions < 1.80 ? [history objectForKey: @"IncompleteFolder"] : nil]; @@ -1545,7 +1544,7 @@ int trashDataFile(const char * filename) - (id) initWithPath: (NSString *) path hash: (NSString *) hashString torrentStruct: (tr_torrent *) torrentStruct lib: (tr_session *) lib waitToStart: (NSNumber *) waitToStart groupValue: (NSNumber *) groupValue - legacyDownloadFolder: (NSString *) downloadFolder legacyIncompleteFolder: (NSString *) incompleteFolder + downloadFolder: (NSString *) downloadFolder legacyIncompleteFolder: (NSString *) incompleteFolder { if (!(self = [super init])) return nil;