diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-07-02 23:20:56 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-07-02 23:20:56 +0200 |
commit | b1df4625c1613137c2c8e2a43c81b3441661615c (patch) | |
tree | 5d0de6d7d8ec55b2b1f785a3da7796cc14bc6a36 /components | |
parent | 2c02bfce315dd54ccb319f55256a7da47bc2ca42 (diff) | |
download | kube-b1df4625c1613137c2c8e2a43c81b3441661615c.tar.gz kube-b1df4625c1613137c2c8e2a43c81b3441661615c.zip |
Fixed triggering of DAV sync
Diffstat (limited to 'components')
-rw-r--r-- | components/kube/contents/ui/Kube.qml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index c6fbffb9..095e51e1 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml | |||
@@ -201,6 +201,13 @@ Controls2.ApplicationWindow { | |||
201 | kubeViews.push(composerView, {message: mail, loadAsDraft: openAsDraft}, Controls2.StackView.Immediate) | 201 | kubeViews.push(composerView, {message: mail, loadAsDraft: openAsDraft}, Controls2.StackView.Immediate) |
202 | } | 202 | } |
203 | 203 | ||
204 | onCurrentItemChanged: { | ||
205 | //TODO with qt 5.8 use Controls2.StackView.onActivated | ||
206 | if (currentItem == peopleView) { | ||
207 | Kube.Fabric.postMessage(Kube.Messages.synchronize, {"type": "contacts"}) | ||
208 | } | ||
209 | } | ||
210 | |||
204 | //These items are not visible until pushed onto the stack, so we keep them in resources instead of items | 211 | //These items are not visible until pushed onto the stack, so we keep them in resources instead of items |
205 | resources: [ | 212 | resources: [ |
206 | //Not components so we maintain state | 213 | //Not components so we maintain state |