work around for small bug in apple code

This commit is contained in:
Mitchell Livingston 2006-09-28 21:37:19 +00:00
parent c8d7769436
commit 3e93518815
4 changed files with 13 additions and 9 deletions

View File

@ -11,9 +11,9 @@
<key>28</key>
<string>22 331 577 290 0 0 1024 746 </string>
<key>41</key>
<string>294 420 563 317 0 0 1152 842 </string>
<string>213 415 563 317 0 0 1152 842 </string>
<key>66</key>
<string>72 601 563 159 0 0 1152 842 </string>
<string>294 499 563 159 0 0 1152 842 </string>
</dict>
<key>IBFramework Version</key>
<string>446.1</string>
@ -24,7 +24,6 @@
<key>IBOpenObjects</key>
<array>
<integer>66</integer>
<integer>41</integer>
</array>
<key>IBSystem Version</key>
<string>8J135</string>

View File

@ -51,12 +51,12 @@
IBOutlet NSButton * fUploadCheck, * fDownloadCheck,
* fSpeedLimitAutoCheck;
IBOutlet NSTextField * fPortField, * fNatStatusField, * fPortStatusField;
IBOutlet NSButton * fNatCheck;
IBOutlet NSImageView * fNatStatusImage, * fPortStatusImage;
IBOutlet NSProgressIndicator * fPortStatusProgress;
NSTimer * fNatStatusTimer;
int fNatStatus;
IBOutlet NSTextField * fPortField, * fNatStatusField, * fPortStatusField;
IBOutlet NSButton * fNatCheck;
IBOutlet NSImageView * fNatStatusImage, * fPortStatusImage;
IBOutlet NSProgressIndicator * fPortStatusProgress;
NSTimer * fNatStatusTimer;
int fNatStatus;
IBOutlet NSButton * fRatioCheck;
IBOutlet NSTextField * fRatioField;

View File

@ -123,6 +123,7 @@
int bindPort = [fDefaults integerForKey: @"BindPort"];
[fPortField setIntValue: bindPort];
tr_setBindPort(fHandle, bindPort);
[self updatePortStatus];
//set NAT
@ -893,6 +894,10 @@
- (void) showNetworkPref: (id) sender
{
[self setPrefView: fNetworkView];
//get around bug in apple code
if ([fPortStatusImage image])
[fPortStatusProgress setDisplayedWhenStopped: NO];
}
- (void) setPrefView: (NSView *) view