summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-05 05:30:17 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-07 02:41:38 -0800
commitbdca103d53eaea3c77db19c102282778c74564e6 (patch)
tree537e2e1bb669f4c501676caba55a56a5a6c798b2
parent3025d5b4114032519a52c541add5c7312e2ab0d2 (diff)
Standardize _reloadData code ordering.
-rw-r--r--MobileCydia.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 37d3d93..e3e85ac 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -7497,8 +7497,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
era_ = [database_ era];
NSArray *packages = [database_ packages];
- [sections_ removeAllObjects];
-
#if 1
UIProgressHUD *hud([delegate_ addProgressHUD]);
[hud setText:UCLocalize("LOADING")];
@@ -7509,6 +7507,8 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
[self _reloadPackages:packages];
#endif
+ [sections_ removeAllObjects];
+
Section *upgradable = [[[Section alloc] initWithName:UCLocalize("AVAILABLE_UPGRADES") localize:NO] autorelease];
Section *ignored = nil;
Section *section = nil;