]> git.sesse.net Git - vlc/commitdiff
* x11_loop.cpp: check if there is a theme before getting the window manager!
authorCyril Deguet <asmax@videolan.org>
Mon, 5 Apr 2004 18:26:34 +0000 (18:26 +0000)
committerCyril Deguet <asmax@videolan.org>
Mon, 5 Apr 2004 18:26:34 +0000 (18:26 +0000)
    (avoid a segfault when there is no theme at the beginning)

modules/gui/skins2/x11/x11_loop.cpp

index 1d97c12bb25b6d469019a9e18c10396d0d2ff36a..04e9841512a2a81c7a1121ef337ecfb1a875d415 100644 (file)
@@ -158,7 +158,11 @@ void X11Loop::handleX11Event()
         {
             // When the "parent" window is mapped, show all the visible
             // windows, as it is not automatic, unfortunately
-            getIntf()->p_sys->p_theme->getWindowManager().synchVisibility();
+            Theme *pTheme = getIntf()->p_sys->p_theme;
+            if( pTheme )
+            {
+                pTheme->getWindowManager().synchVisibility();
+            }
         }
         return;
     }