]> git.saurik.com Git - cydia.git/commitdiff
Unload data when presenting modal page.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 28 Feb 2011 18:38:38 +0000 (10:38 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 7 Mar 2011 10:41:28 +0000 (02:41 -0800)
MobileCydia.mm
UICaboodle/BrowserView.h
UICaboodle/BrowserView.mm

index 2b6c6327e7ed7000ff53477a45549fcd5f8cbdd5..0648e4c104ed4a76e595314412c2649fdfef1624 100644 (file)
@@ -9086,10 +9086,14 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
     return [controllers objectAtIndex:3];
 }
 
+- (void) unloadData {
+    [tabbar_ unloadData];
+}
+
 - (void) _updateData {
     [self _saveConfig];
 
-    [tabbar_ unloadData];
+    [self unloadData];
 
     UINavigationController *navigation = [self queueNavigationController];
 
index 03355c2d813b82b59c6326b3c8ae6f3d58ec849c..636405c81893158420bd59011fe697d4aa25add5 100644 (file)
@@ -56,6 +56,7 @@
 - (void) retainNetworkActivityIndicator;
 - (void) releaseNetworkActivityIndicator;
 - (CYViewController *) pageForURL:(NSURL *)url forExternal:(BOOL)external;
+- (void) unloadData;
 @end
 
 @interface BrowserController : CYViewController <
index 201e85415c385f7e4db48ea67eb0dc291fbd2d8f..f03c93955b58150fb018dc97f4bf975afbc93cc6 100644 (file)
@@ -707,6 +707,8 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se
         ] autorelease]];
 
         [[self navigationController] presentModalViewController:navigation animated:YES];
+
+        [delegate_ unloadData];
     }
 }