From 11dcbf4e8578d63d2b8e81a64ac5d517f35e0378 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 8 Jan 2007 15:20:18 +0000 Subject: [PATCH] since the default values really don't matter, set torrent speed limits to global limits by default --- macosx/Torrent.m | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/macosx/Torrent.m b/macosx/Torrent.m index feff4d0eb..462eee1e5 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -25,9 +25,6 @@ #import "Torrent.h" #import "StringAdditions.h" -#define DOWNLOAD_LIMIT_DEFAULT 50 -#define UPLOAD_LIMIT_DEFAULT 20 - #define BAR_HEIGHT 12.0 #define MAX_PIECES 324 @@ -1176,9 +1173,9 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80 fLimitCustom = limitCustom ? [limitCustom boolValue] : NO; fCheckUpload = checkUpload ? [checkUpload boolValue] : NO; - fUploadLimit = uploadLimit ? [uploadLimit intValue] : UPLOAD_LIMIT_DEFAULT; + fUploadLimit = uploadLimit ? [uploadLimit intValue] : [fDefaults integerForKey: @"UploadLimit"]; fCheckDownload = checkDownload ? [checkDownload boolValue] : NO; - fDownloadLimit = downloadLimit ? [downloadLimit intValue] : DOWNLOAD_LIMIT_DEFAULT; + fDownloadLimit = downloadLimit ? [downloadLimit intValue] : [fDefaults integerForKey: @"DownloadLimit"]; [self updateSpeedSetting]; fWaitToStart = waitToStart ? [waitToStart boolValue] : [fDefaults boolForKey: @"AutoStartDownload"];