]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/src/theme.cpp
* ft2_font.cpp: added a cache for glyphs rendered with freetype, because
[vlc] / modules / gui / skins2 / src / theme.cpp
old mode 100755 (executable)
new mode 100644 (file)
index b91f6c0..c0b33ed
@@ -45,8 +45,15 @@ void Theme::loadConfig()
 
     // Get config from vlcrc file
     char *save = config_GetPsz( getIntf(), "skins2-config" );
-    if( save == NULL )
+    if( !save ) return;
+
+    // Is there an existing config?
+    if( !strcmp( save, "" ) )
+    {
+        // Show the windows
+        m_windowManager.showAll();
         return;
+    }
 
     // Initialization
     map<string, TopWindowPtr>::const_iterator it;
@@ -75,6 +82,7 @@ void Theme::loadConfig()
         // Next window
         i++;
     }
+    free( save );
 }
 
 
@@ -102,7 +110,6 @@ void Theme::saveConfig()
 
     // Save config to file
     config_PutPsz( getIntf(), "skins2-config", save );
-    config_SaveConfigFile( getIntf(), "skins2" );
 
     // Free memory
     delete[] save;