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

List:       kde-commits
Subject:    [kreport/3.0] src/wrtembed: Really fix interpreter being empty
From:       Adam Pigg <null () kde ! org>
Date:       2017-05-09 18:31:46
Message-ID: E1d89vG-0007gC-D3 () code ! kde ! org
[Download RAW message or body]

Git commit 78cf5a71649593af8c7acfdbb0cedcc2ee6d8767 by Adam Pigg.
Committed on 09/05/2017 at 18:31.
Pushed by piggz into branch '3.0'.

Really fix interpreter being empty

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

https://commits.kde.org/kreport/78cf5a71649593af8c7acfdbb0cedcc2ee6d8767

diff --git a/src/wrtembed/KReportDesigner.cpp b/src/wrtembed/KReportDesigner.cpp
index 81a9f60..b4895f1 100644
--- a/src/wrtembed/KReportDesigner.cpp
+++ b/src/wrtembed/KReportDesigner.cpp
@@ -293,6 +293,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