Changeset 10449


Ignore:
Timestamp:
Apr 6, 2010, 1:44:38 AM (13 years ago)
Author:
livings124
Message:

only toggle the pieces view when a torrent is selected

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PiecesView.m

    r10448 r10449  
    210210- (void) mouseDown: (NSEvent *) event
    211211{
    212     const BOOL availability = ![[NSUserDefaults standardUserDefaults] boolForKey: @"PiecesViewShowAvailability"];
    213     [[NSUserDefaults standardUserDefaults] setBool: availability forKey: @"PiecesViewShowAvailability"];
    214    
    215     [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdatePiecesView" object: self];
     212    if (fTorrent)
     213    {
     214        const BOOL availability = ![[NSUserDefaults standardUserDefaults] boolForKey: @"PiecesViewShowAvailability"];
     215        [[NSUserDefaults standardUserDefaults] setBool: availability forKey: @"PiecesViewShowAvailability"];
     216       
     217        [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdatePiecesView" object: self];
     218    }
    216219   
    217220    [super mouseDown: event];
Note: See TracChangeset for help on using the changeset viewer.