From 223b68a4f7587c844312a6db29e4827f63ea4481 Mon Sep 17 00:00:00 2001 From: konrad Date: Mon, 25 Oct 2010 18:01:24 +0000 Subject: [PATCH] fix script download git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@612 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- src/script/jsengine.cpp | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/script/jsengine.cpp b/src/script/jsengine.cpp index a3d4d83..d1e034d 100644 --- a/src/script/jsengine.cpp +++ b/src/script/jsengine.cpp @@ -156,6 +156,7 @@ static inline void clearDir(QString dn) void MScriptEngine::initScriptPath() { QSettings set; + qDebug()<<"initializing script environment"; //retrieve settings (or defaults) set.beginGroup(req->configSettingsGroup()+"/script"); QMultiMappaths; @@ -171,11 +172,13 @@ void MScriptEngine::initScriptPath() for(int i=0;i<=100;i++) if(paths.contains(i)) m_basepath<templateStore(); if(store==0)return; - QString fn=store->getTemplate("scripts.zip").cacheFileName(); + QString fn=store->getTemplate("scripts").cacheFileName(); if(fn=="")return; QFile fd(fn); if(!fd.open(QIODevice::ReadOnly))return; -- 1.7.2.5