Ignore:
Timestamp:
Oct 8, 2007, 4:15:25 AM (15 years ago)
Author:
livings124
Message:

ensure everything is deallocated properly on quit, libtransmission is closed properly, and inspector window height is remembered

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/InfoWindowController.m

    r3324 r3325  
    160160- (void) dealloc
    161161{
    162     #warning not called?
    163     float viewHeight = [[self tabViewForTag: fCurrentTabTag] frame].size.height;
    164    
    165162    //save resizeable view height
    166163    if (fCurrentTabTag == TAB_PEERS_TAG || fCurrentTabTag == TAB_FILES_TAG)
    167         [[NSUserDefaults standardUserDefaults] setFloat: viewHeight forKey: @"InspectorContentHeight"];
     164        [[NSUserDefaults standardUserDefaults] setFloat: [[self tabViewForTag: fCurrentTabTag] frame].size.height
     165            forKey: @"InspectorContentHeight"];
    168166   
    169167    [[NSNotificationCenter defaultCenter] removeObserver: self];
     
    200198        else
    201199        {
    202             [fNameField setStringValue: NSLocalizedString(@"No Torrents Selected",
    203                                                             "Inspector -> above tabs -> selected torrents")];
     200            [fNameField setStringValue: NSLocalizedString(@"No Torrents Selected", "Inspector -> above tabs -> selected torrents")];
    204201            [fSizeField setStringValue: @""];
    205202   
Note: See TracChangeset for help on using the changeset viewer.