]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/x11/x11_loop.cpp
Uniformize source files encoding
[vlc] / modules / gui / skins2 / x11 / x11_loop.cpp
index 1d97c12bb25b6d469019a9e18c10396d0d2ff36a..5c68edf99d784a62dd70e7831bc06c157cd802e1 100644 (file)
@@ -1,11 +1,11 @@
 /*****************************************************************************
  * x11_loop.cpp
  *****************************************************************************
- * Copyright (C) 2003 VideoLAN
+ * Copyright (C) 2003 the VideoLAN team
  * $Id$
  *
  * Authors: Cyril Deguet     <asmax@via.ecp.fr>
- *          Olivier Teulière <ipkiss@via.ecp.fr>
+ *          Olivier Teulière <ipkiss@via.ecp.fr>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -19,7 +19,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
 #ifdef X11_SKINS
@@ -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;
     }