diff options
author | Tim Jenssen <tim.jenssen@nokia.com> | 2012-01-24 15:09:30 +0100 |
---|---|---|
committer | Tim Jenssen <tim.jenssen@nokia.com> | 2012-01-24 17:47:52 +0100 |
commit | 42aae979841d596538ae5f1731ee8bac3c18d47b (patch) | |
tree | f5115d60e8e412bdfe2a177c066d0806c2234b9c /installerbuilder | |
parent | 278eeb2b602b02654c8a4d4477981c68087550dc (diff) |
don't try to call methods if there is no script
Change-Id: I3a1d5d4b75e0e928f37c976eac1b034a7798f7fb
Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
Diffstat (limited to 'installerbuilder')
-rw-r--r-- | installerbuilder/libinstaller/packagemanagergui.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/installerbuilder/libinstaller/packagemanagergui.cpp b/installerbuilder/libinstaller/packagemanagergui.cpp index 21bdab0ce..3f2cd20c7 100644 --- a/installerbuilder/libinstaller/packagemanagergui.cpp +++ b/installerbuilder/libinstaller/packagemanagergui.cpp @@ -389,6 +389,9 @@ void PackageManagerGui::slotCurrentPageChanged(int id) void PackageManagerGui::callControlScriptMethod(const QString &methodName) { + if (!d->m_controlScript.isValid()) + return; + QScriptValue method = d->m_controlScript.property(QLatin1String("prototype")).property(methodName); if (!method.isValid()) { |