Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Improve the behaviour while the search finishes.

  • Loading branch information...
commit 68429a2f60f2432ad3b37b3941864c0a33ef0e85 1 parent 9b3de03
@beelsebob authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 Stash/STAAppDelegate.m
View
5 Stash/STAAppDelegate.m
@@ -540,12 +540,11 @@ - (IBAction)search:(id)sender
{
[[self results] addObject:symbol];
[self setSortedResults:[[self results] sortedArrayUsingSelector:@selector(compare:)]];
- [[self resultsTable] reloadData];
- if ([[self resultsTable] selectedRow] == -1)
+ [[self resultsTable] insertRowsAtIndexes:[NSIndexSet indexSetWithIndex:[[self sortedResults] indexOfObject:symbol]] withAnimation:0];
+ if ([[self resultsTable] selectedRow] != 0)
{
[[self resultsTable] selectRowIndexes:[NSIndexSet indexSetWithIndex:0] byExtendingSelection:NO];
}
- [self tableViewSelectionDidChange:nil];
}
});
}];

0 comments on commit 68429a2

Please sign in to comment.
Something went wrong with that request. Please try again.