]> git.saurik.com Git - cydia.git/commitdiff
self isn't even initialized, why are we trying to get our own view?
authorDustin L. Howett <dustin@howett.net>
Mon, 4 Oct 2010 09:02:37 +0000 (05:02 -0400)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 4 Oct 2010 09:45:29 +0000 (09:45 +0000)
Cydia.mm

index aa0e842d2cb4714628ce28ea275620374da105ab..005dc2ee6e4daa1a91008afc4e293236f5f22cd3 100644 (file)
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -3975,7 +3975,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
 }
 
 - (id) init {
 }
 
 - (id) init {
-    if ((self = [super initWithWidth:[[self view] bounds].size.width ofClass:[CYBrowserController class]]) != nil) {
+    if ((self = [super initWithWidth:0 ofClass:[CYBrowserController class]]) != nil) {
         cydia_ = [[CydiaObject alloc] initWithDelegate:indirect_];
 
         WebView *webview([document_ webView]);
         cydia_ = [[CydiaObject alloc] initWithDelegate:indirect_];
 
         WebView *webview([document_ webView]);
@@ -8942,4 +8942,4 @@ int main(int argc, char *argv[]) { _pooled
     CFRelease(Locale_);
 
     return value;
     CFRelease(Locale_);
 
     return value;
-}
\ No newline at end of file
+}