You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by dk...@apache.org on 2012/03/12 16:14:28 UTC

[1/2] qt commit: Workaround for symbian regarding HTMl5 localStorage/client side database

Updated Branches:
  refs/heads/master 58fbc9850 -> 4d041b664


Workaround for symbian regarding HTMl5 localStorage/client side database

Without workaround HTML localStorage is not persistent, and HTML5 client side database
does not work (javascript execution stops due to error)
Reason is probably that on symbian default path for storage is set incorrectly.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-qt/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-qt/commit/4d041b66
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-qt/tree/4d041b66
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-qt/diff/4d041b66

Branch: refs/heads/master
Commit: 4d041b664dc376e7097a9259314b24fded74e576
Parents: 060d55e
Author: cip <ci...@gmx.at>
Authored: Sat Mar 10 22:52:31 2012 +0100
Committer: Denis Kormalev <dk...@ics.com>
Committed: Mon Mar 12 18:14:30 2012 +0400

----------------------------------------------------------------------
 main.cpp |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-qt/blob/4d041b66/main.cpp
----------------------------------------------------------------------
diff --git a/main.cpp b/main.cpp
index e9d66bf..eaa9f28 100644
--- a/main.cpp
+++ b/main.cpp
@@ -48,6 +48,12 @@ int main(int argc, char *argv[])
 #endif
 
 #if QT_VERSION < 0x050000
+#if defined(Q_OS_SYMBIAN)
+    //Workaround for symbian: without this HTMl5 localStorage is not persistent, and HTML5 client side database
+    // does not work (javascript execution stops due to error)
+    // Reason is probably that on symbian default path for storage is set incorrectly.
+    QWebSettings::globalSettings()->enablePersistentStorage(Cordova::instance()->workingDir());
+#endif
 # ifdef MEEGO_EDITION_HARMATTAN
     QScopedPointer<QDeclarativeView> view(MDeclarativeCache::qDeclarativeView());
 # else