summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJędrzej Nowacki <jedrzej.nowacki@digia.com>2013-12-09 09:48:09 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-09 11:03:46 +0100
commit431bd4546d93ed122e5d3720147c6e2df3f185f6 (patch)
tree35f9bb6fe6f866ad23e343bc170bde635243c189 /examples
parenta4a54ba387480fc18524bf2d5bdd9035f5108676 (diff)
downloadqtenginio-431bd4546d93ed122e5d3720147c6e2df3f185f6.tar.gz
Save backend id in settings earlier
Many apps, especially mobiles, are not closed but killed. In such case BackendHelperContext dtor was not called and backend id was not saved. Change-Id: If9e30faf9cc521ad74001d9fdf5e659f7605e7ed Reviewed-by: Caroline Chao <caroline.chao@digia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/enginio/quick/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/enginio/quick/main.cpp b/examples/enginio/quick/main.cpp
index 7356a7a..8f0672d 100644
--- a/examples/enginio/quick/main.cpp
+++ b/examples/enginio/quick/main.cpp
@@ -79,7 +79,6 @@ public:
~BackendHelperContext()
{
- _settings->setValue(backendIdKey, _backendId);
_settings->endGroup();
_settings->sync();
}
@@ -90,6 +89,7 @@ public:
if (_backendId == backendId)
return;
_backendId = backendId;
+ _settings->setValue(backendIdKey, _backendId);
emit backendIdChanged();
}