Changeset 4239


Ignore:
Timestamp:
Dec 20, 2007, 2:09:44 AM (15 years ago)
Author:
livings124
Message:

another attempt of fixing the dock badge on quit on tiger

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Badger.h

    r4072 r4239  
    2828@interface Badger : NSObject
    2929{
    30     tr_handle       * fLib;
     30    tr_handle * fLib;
    3131   
    32     NSImage         * fDockIcon, * fBadge;
     32    NSImage * fDockIcon, * fBadge;
    3333   
    34     NSDictionary    * fAttributes;
    35     int             fCompleted, fCompletedBadged;
    36     BOOL            fSpeedBadge;
     34    NSDictionary * fAttributes;
     35    int fCompleted, fCompletedBadged;
     36    BOOL fSpeedBadge;
     37   
     38    BOOL fQuittingTiger;
    3739}
    3840
  • trunk/macosx/Badger.m

    r4237 r4239  
    5757            [view release];
    5858        }
     59        else
     60            fQuittingTiger = NO;
    5961       
    6062        //change that just impacts the dock badge
     
    8183        [[NSApp dockTile] display];
    8284        return;
     85    }
     86    else
     87    {
     88        if (fQuittingTiger)
     89            return;
    8390    }
    8491   
     
    228235    else
    229236    {
     237        fQuittingTiger = YES;
     238       
    230239        fSpeedBadge = NO;
    231240        fCompleted = 0;
    232241        fCompletedBadged = 0;
    233         [NSApp setApplicationIconImage: @"NSApplicationIcon"];
     242        [NSApp setApplicationIconImage: nil];
    234243    }
    235244}
Note: See TracChangeset for help on using the changeset viewer.