]> git.saurik.com Git - cydia.git/blobdiff - UICaboodle/ResetView.mm
Checkpoint before UICaboodle reorganzation.
[cydia.git] / UICaboodle / ResetView.mm
index 4265be4722539a834d3332cc66d664eaad7abd35..bd1c8ee8b82d253abe55c47979dd7dfa14a1c43d 100644 (file)
@@ -37,7 +37,9 @@
 @implementation UITableView (RVBook)
 
 - (void) resetViewAnimated:(BOOL)animated {
 @implementation UITableView (RVBook)
 
 - (void) resetViewAnimated:(BOOL)animated {
-    [self selectRowAtIndexPath:nil animated:animated scrollPosition:UITableViewScrollPositionNone];
+    //[self selectRowAtIndexPath:nil animated:animated scrollPosition:UITableViewScrollPositionNone];
+    if (NSIndexPath *path = [self indexPathForSelectedRow])
+        [self deselectRowAtIndexPath:path animated:animated];
 }
 
 - (void) clearView {
 }
 
 - (void) clearView {