summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-02-28 10:38:38 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:28 -0800
commit302bf91cd8a4388360bd4ccb3464e995e90c3235 (patch)
treeafd6b5d66c4722d34b6350a3106d483d74f3a6d4
parentdd48f2e66a305d635324adfc9e4689bcccb66357 (diff)
Unload data when presenting modal page.
-rw-r--r--MobileCydia.mm6
-rw-r--r--UICaboodle/BrowserView.h1
-rw-r--r--UICaboodle/BrowserView.mm2
3 files changed, 8 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 2b6c632..0648e4c 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -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];
diff --git a/UICaboodle/BrowserView.h b/UICaboodle/BrowserView.h
index 03355c2..636405c 100644
--- a/UICaboodle/BrowserView.h
+++ b/UICaboodle/BrowserView.h
@@ -56,6 +56,7 @@
- (void) retainNetworkActivityIndicator;
- (void) releaseNetworkActivityIndicator;
- (CYViewController *) pageForURL:(NSURL *)url forExternal:(BOOL)external;
+- (void) unloadData;
@end
@interface BrowserController : CYViewController <
diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm
index 201e854..f03c939 100644
--- a/UICaboodle/BrowserView.mm
+++ b/UICaboodle/BrowserView.mm
@@ -707,6 +707,8 @@ static void $UIWebViewWebViewDelegate$webViewClose$(UIWebViewWebViewDelegate *se
] autorelease]];
[[self navigationController] presentModalViewController:navigation animated:YES];
+
+ [delegate_ unloadData];
}
}