This repository was archived by the owner on Jan 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change 4545@property (weak ) IBOutlet NSTextField *wsPathField;
4646
4747
48- @property (nonatomic , weak ) ServerProfile* selectedProfile;
48+ @property (nonatomic ) ServerProfile* selectedProfile;
4949@property NSInteger selectedServerIndex;
5050@property NSInteger localPort;
5151@property BOOL udpSupport;
Original file line number Diff line number Diff line change @@ -75,12 +75,6 @@ - (IBAction)addRemoveServer:(id)sender {
7575 NSInteger originalSelectedServerIndex = [_profileTable selectedRow ];
7676 [profiles removeObjectAtIndex: originalSelectedServerIndex];
7777 if ([profiles count ] > 0 ) {
78- /*
79- if (originalSelectedServerIndex < [profiles count]) {
80- [_profileTable selectRowIndexes:[NSIndexSet indexSetWithIndex:originalSelectedServerIndex] byExtendingSelection:NO];
81- } else {
82- [_profileTable selectRowIndexes:[NSIndexSet indexSetWithIndex:([profiles count] - 1)] byExtendingSelection:NO];
83- }*/
8478 if (originalSelectedServerIndex == [profiles count ]) {// deleted the last server
8579 // select the last server of the remains
8680 [self setSelectedServerIndex: [profiles count ] - 1 ];
You can’t perform that action at this time.
0 commit comments