summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/kube/contents/ui/Kube.qml7
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