[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/base/plasma/plasmate
From:       Sebastian Kügler <sebas () kde ! org>
Date:       2011-03-13 1:10:36
Message-ID: 20110313011036.1DF2FAC8C9 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1224637 by sebas:

do not create code/main

The mainscript will be created from the template. Creating an empty
code/main script breaks the package since the Plasma scriptengine will
use this as mainscript, and ignore the one set in metadata.desktop

Fixes starting of new projects.

 M  +3 -0      packagemodel.cpp  


--- trunk/playground/base/plasma/plasmate/packagemodel.cpp #1224636:1224637
@@ -301,9 +301,12 @@
         if (!dir.exists(path)) {
             QFileInfo info(dir.path() + '/' + path);
             dir.mkpath(dir.relativeFilePath(info.absolutePath()));
+            // Create all files, but 'code/main', as this is replaced by a template
+            if (path != "code/main") {
             QFile f(dir.path() + '/' + path);
             f.open(QIODevice::WriteOnly);
         }
+        }
 
         indexedFiles.insert(path, key);
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic