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

List:       kde-commits
Subject:    [kreport] src/wrtembed: Really fix interpreter being empty
From:       Adam Pigg <null () kde ! org>
Date:       2017-05-09 18:36:56
Message-ID: E1d8A0G-0004IC-Th () code ! kde ! org
[Download RAW message or body]

Git commit f3a6b850a1952528a16e7492d742105138a72889 by Adam Pigg.
Committed on 09/05/2017 at 18:33.
Pushed by piggz into branch 'master'.

Really fix interpreter being empty

M  +3    -0    src/wrtembed/KReportDesigner.cpp

https://commits.kde.org/kreport/f3a6b850a1952528a16e7492d742105138a72889

diff --git a/src/wrtembed/KReportDesigner.cpp b/src/wrtembed/KReportDesigner.cpp
index 3352962..fa02eed 100644
--- a/src/wrtembed/KReportDesigner.cpp
+++ b/src/wrtembed/KReportDesigner.cpp
@@ -259,6 +259,9 @@ KReportDesigner::KReportDesigner(QWidget *parent, const \
QDomElement &data)  #ifdef KREPORT_SCRIPTING
             } else if (n == QLatin1String("report:script")) {
                 d->originalInterpreter = \
it.toElement().attribute(QLatin1String("report:script-interpreter"), \
QLatin1String("javascript")); +                if (d->originalInterpreter.isEmpty()) \
{ +                    d->originalInterpreter = QLatin1String("javascript");
+                }
                 d->originalScript = it.firstChild().nodeValue();
                 d->script->setValue(d->originalScript);
 


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

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