diff options
author | Jędrzej Nowacki <jedrzej.nowacki@digia.com> | 2013-12-09 09:48:09 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-12-09 11:03:46 +0100 |
commit | 431bd4546d93ed122e5d3720147c6e2df3f185f6 (patch) | |
tree | 35f9bb6fe6f866ad23e343bc170bde635243c189 /examples | |
parent | a4a54ba387480fc18524bf2d5bdd9035f5108676 (diff) | |
download | qtenginio-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.cpp | 2 |
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(); } |