summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorGrant Paul <chpwn@chpwn.com>2011-02-14 00:35:49 -0800
committerGrant Paul <chpwn@chpwn.com>2011-02-14 00:35:53 -0800
commitc026045add801ae7633056d39ae1e68eebe9765e (patch)
treed33ffd200ff7299dbd8148afd6145734aea14296 /MobileCydia.mm
parent57e8b2254bfa8b4477bfe50c49063efd284e0346 (diff)
Added more comments, and removed a useless method.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm7
1 files changed, 3 insertions, 4 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index bf44ea6..dcc9b15 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -6596,10 +6596,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
@implementation CYNavigationController
-- (void) dealloc {
- [super dealloc];
-}
-
- (NSArray *) navigationURLCollection {
NSMutableArray *stack([NSMutableArray array]);
@@ -6614,6 +6610,9 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
- (void) reloadData {
for (CYViewController *page in [self viewControllers]) {
+ // Only reload controllers that have already loaded.
+ // This prevents a page from accidentally loading too
+ // early if it hasn't been shown on the screen yet.
if ([page hasLoaded])
[page reloadData];
}