[vlc-commits] macosx: fix advanced prefs dialog initialization
    David Fuhrmann 
    git at videolan.org
       
    Sun Oct  2 21:23:23 CEST 2016
    
    
  
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sun Oct  2 21:22:45 2016 +0200| [a1886369de0f9a141e040b62c3e64971caf9ab75] | committer: David Fuhrmann
macosx: fix advanced prefs dialog initialization
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a1886369de0f9a141e040b62c3e64971caf9ab75
---
 modules/gui/macosx/prefs.m | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/gui/macosx/prefs.m b/modules/gui/macosx/prefs.m
index e92c77b..6e74409 100644
--- a/modules/gui/macosx/prefs.m
+++ b/modules/gui/macosx/prefs.m
@@ -170,6 +170,10 @@
 - (id)init
 {
     self = [super initWithWindowNibName:@"Preferences"];
+    if (self) {
+        o_emptyView = [[NSView alloc] init];
+        _rootTreeItem = [[VLCTreeMainItem alloc] init];
+    }
 
     return self;
 }
@@ -177,9 +181,6 @@
 - (void)windowDidLoad
 
 {
-    o_emptyView = [[NSView alloc] init];
-    _rootTreeItem = [[VLCTreeMainItem alloc] init];
-
     [self.window setCollectionBehavior: NSWindowCollectionBehaviorFullScreenAuxiliary];
     [self.window setHidesOnDeactivate:YES];
 
    
    
More information about the vlc-commits
mailing list