svn path=/trunk/KDE/kdebase/runtime/; revision=1175798
This commit is contained in:
Aaron J. Seigo 2010-09-16 00:33:09 +00:00
parent 6456a4f3d6
commit fae88be62e
3 changed files with 3 additions and 3 deletions

View File

@ -473,7 +473,7 @@ QScriptValue ScriptEnv::registerAddon(QScriptContext *context, QScriptEngine *en
QScriptValue obj = func.construct();
obj.setProperty("__plasma_package",
context->parentContext()->activationObject().property("__plasma_package"),
QScriptValue::ReadOnly|
QScriptValue::ReadOnly |
QScriptValue::Undeletable |
QScriptValue::SkipInEnumeration);

View File

@ -313,7 +313,7 @@ Plasma::Service *JavaScriptDataEngine::serviceForSource(const QString &source)
QString JavaScriptDataEngine::filePath(const char *type, const QString &file) const
{
const QString path = m_env->filePathFromScriptContext(type, file);
if (path.isEmpty()) {
if (!path.isEmpty()) {
return path;
}

View File

@ -150,7 +150,7 @@ void JavaScriptRunner::reportError(ScriptEnv *env, bool fatal)
QString JavaScriptRunner::filePath(const char *type, const QString &file) const
{
const QString path = m_env->filePathFromScriptContext(type, file);
if (path.isEmpty()) {
if (!path.isEmpty()) {
return path;
}