typo
svn path=/trunk/KDE/kdebase/runtime/; revision=1175798
This commit is contained in:
parent
6456a4f3d6
commit
fae88be62e
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user