QTfrontend/main.cpp
changeset 6197 4ce7c29799b9
parent 6196 c16e84558f71
child 6237 a66029015c18
--- a/QTfrontend/main.cpp	Mon Oct 24 06:54:46 2011 +0200
+++ b/QTfrontend/main.cpp	Mon Oct 24 10:30:47 2011 +0200
@@ -165,27 +165,6 @@
         return 1;
     }
 
-    // copy data/default css files to cfgdir as templates
-    QString userCssDir = cfgdir->absolutePath() + "/Data/css";
-    if (checkForDir(userCssDir))
-    {
-        QString defaultCssDir = ":res/css";
-        QStringList cssFiles = QDir(defaultCssDir).entryList(QDir::Files);
-        foreach (const QString & cssFile, cssFiles)
-        {
-            QString srcName = datadir->absolutePath()+"/css/"+cssFile;
-
-            if (!QFile::exists(srcName))
-                srcName = defaultCssDir+"/"+cssFile;
-
-            QString tmpName = userCssDir + "/template_" + cssFile;
-            if (QFile::exists(tmpName))
-                QFile::remove(tmpName);
-
-            QFile(srcName).copy(tmpName);
-        }
-    }
-
     HWDataManager & dataMgr = HWDataManager::instance();
 
     {