Browse Source

Don’t show the “referring instances” section when searching.

There’s nothing to search for in this section. It’s always one row and the text doesn’t change.
Ryan Olson 12 years ago
parent
commit
5f952d0d30
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Classes/Object Explorers/FLEXObjectExplorerViewController.m

+ 2 - 1
Classes/Object Explorers/FLEXObjectExplorerViewController.m

@@ -569,7 +569,8 @@ static const NSInteger kFLEXObjectExplorerScopeIncludeInheritanceIndex = 1;
             break;
             
         case FLEXObjectExplorerSectionReferencingInstances:
-            numberOfRows = 1;
+            // Hide this section if there is fliter text since there's nothing searchable (only 1 row, always the same).
+            numberOfRows = [self.filterText length] == 0 ? 1 : 0;
             break;
     }
     return numberOfRows;