Skip to content

Commit

Permalink
Fixed issue where trying to reload a cell that is inside a hidden sec…
Browse files Browse the repository at this point in the history
…tion inserts nil into an array. Skip reloading elements which are inside hidden sections.
  • Loading branch information
bgraner committed Dec 11, 2013
1 parent 9c94693 commit 055309a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quickdialog/QuickDialogTableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ - (void)reloadCellForElements:(QElement *)firstElement, ... {
NSMutableArray *indexes = [[NSMutableArray alloc] init];
QElement * element = firstElement;
while (element != nil) {
if (!element.hidden)
if (!element.hidden && !element.parentSection.hidden)
[indexes addObject:element.getIndexPath];
element = va_arg(args, QElement *);
}
Expand Down

0 comments on commit 055309a

Please sign in to comment.