Changeset 380


Ignore:
Timestamp:
Jun 16, 2006, 3:06:24 AM (16 years ago)
Author:
livings124
Message:

This will never happen, but if it would: Don't load image more than once.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentTableView.m

    r379 r380  
    5252    if ((self = [super initWithCoder: decoder]))
    5353    {
    54         fResumeOnIcon = [NSImage imageNamed: @"ResumeOn.png"];
    55         fResumeOffIcon = [NSImage imageNamed: @"ResumeOff.png"];
    56         fPauseOnIcon = [NSImage imageNamed: @"PauseOn.png"];
    57         fPauseOffIcon = [NSImage imageNamed: @"PauseOff.png"];
    58         fRevealOnIcon = [NSImage imageNamed: @"RevealOn.png"];
    59         fRevealOffIcon = [NSImage imageNamed: @"RevealOff.png"];
     54        if (!fResumeOnIcon)
     55            fResumeOnIcon = [NSImage imageNamed: @"ResumeOn.png"];
     56        if (!fResumeOffIcon)
     57            fResumeOffIcon = [NSImage imageNamed: @"ResumeOff.png"];
     58        if (!fPauseOnIcon)
     59            fPauseOnIcon = [NSImage imageNamed: @"PauseOn.png"];
     60        if (!fPauseOffIcon)
     61            fPauseOffIcon = [NSImage imageNamed: @"PauseOff.png"];
     62        if (!fRevealOnIcon)
     63            fRevealOnIcon = [NSImage imageNamed: @"RevealOn.png"];
     64        if (!fRevealOffIcon)
     65            fRevealOffIcon = [NSImage imageNamed: @"RevealOff.png"];
    6066    }
    6167   
Note: See TracChangeset for help on using the changeset viewer.