equal
deleted
inserted
replaced
177 } |
177 } |
178 |
178 |
179 #pragma mark - |
179 #pragma mark - |
180 #pragma mark Table view delegate |
180 #pragma mark Table view delegate |
181 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
181 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
182 int newRow = [indexPath row]; |
182 NSInteger newRow = [indexPath row]; |
183 int oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1; |
183 NSInteger oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1; |
184 |
184 |
185 if (newRow != oldRow) { |
185 if (newRow != oldRow) { |
186 NSArray *source = [self.dataSourceArray objectAtIndex:scIndex]; |
186 NSArray *source = [self.dataSourceArray objectAtIndex:scIndex]; |
187 if (isRandomness()) { |
187 if (isRandomness()) { |
188 // just change the theme, don't update preview |
188 // just change the theme, don't update preview |