Changeset 11988


Ignore:
Timestamp:
Feb 19, 2011, 9:12:45 PM (11 years ago)
Author:
livings124
Message:

when resizing the filter bar, use the filter bar width instead of the status bar width; silence a warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r11967 r11988  
    320320        tr_bencDictAddInt(&settings, TR_PREFS_KEY_PEER_LIMIT_GLOBAL, [fDefaults integerForKey: @"PeersTotal"]);
    321321        tr_bencDictAddInt(&settings, TR_PREFS_KEY_PEER_LIMIT_TORRENT, [fDefaults integerForKey: @"PeersTorrent"]);
    322         tr_bencDictAddBool(&settings, TR_PREFS_KEY_UTP_ENABLED, [fDefaults boolForKey: @"UTPGlobal"]);
    323322       
    324323        const BOOL randomPort = [fDefaults boolForKey: @"RandomPort"];
     
    344343        tr_bencDictAddBool(&settings, TR_PREFS_KEY_SCRIPT_TORRENT_DONE_ENABLED, [fDefaults boolForKey: @"DoneScriptEnabled"]);
    345344        tr_bencDictAddStr(&settings, TR_PREFS_KEY_SCRIPT_TORRENT_DONE_FILENAME, [[fDefaults stringForKey: @"DoneScriptPath"] UTF8String]);
     345        tr_bencDictAddBool(&settings, TR_PREFS_KEY_UTP_ENABLED, [fDefaults boolForKey: @"UTPGlobal"]);
    346346       
    347347        tr_formatter_size_init([NSApp isOnSnowLeopardOrBetter] ? 1000 : 1024,
     
    27232723            case TR_PARSE_ERR:
    27242724                [fAutoImportedNames removeObject: file];
     2725                break;
     2726           
     2727            case TR_PARSE_DUPLICATE: //let's ignore this (but silence a warning)
     2728                break;
    27252729        }
    27262730       
     
    39203924    }
    39213925   
    3922     //clear completed transfers item
     3926    //cleanup completed transfers item
    39233927    if (action == @selector(clearCompleted:))
    39243928    {
     
    42514255    NSRect searchFrame = [fSearchFilterField frame];
    42524256    searchFrame.origin.x = NSMaxX(pauseRect) + 5.0;
    4253     searchFrame.size.width = [fStatusBar frame].size.width - searchFrame.origin.x - 5.0;
     4257    searchFrame.size.width = [fFilterBar frame].size.width - searchFrame.origin.x - 5.0;
    42544258   
    42554259    //make sure it is not too long
Note: See TracChangeset for help on using the changeset viewer.