From 302bf91cd8a4388360bd4ccb3464e995e90c3235 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Mon, 28 Feb 2011 10:38:38 -0800 Subject: Unload data when presenting modal page. --- MobileCydia.mm | 6 +++++- UICaboodle/BrowserView.h | 1 + UICaboodle/BrowserView.mm | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) 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]; } } -- cgit v1.2.3