diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2018-03-02 11:50:52 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2018-03-02 11:50:52 +0100 |
commit | f0b2dd171acd7c809325134f7c99a9cf03a214db (patch) | |
tree | cf9353ee26fad94be4da71845f87d0ab8d3aefeb /views/people/qml/People.qml | |
parent | cbcb2e305fb02853234e5394c4202b1150026d81 (diff) | |
download | kube-f0b2dd171acd7c809325134f7c99a9cf03a214db.tar.gz kube-f0b2dd171acd7c809325134f7c99a9cf03a214db.zip |
actually load the contact when editing
Diffstat (limited to 'views/people/qml/People.qml')
-rw-r--r-- | views/people/qml/People.qml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/views/people/qml/People.qml b/views/people/qml/People.qml index e2879a9b..38a95d75 100644 --- a/views/people/qml/People.qml +++ b/views/people/qml/People.qml | |||
@@ -66,7 +66,11 @@ FocusScope { | |||
66 | } | 66 | } |
67 | visible: stack.depth > 1 | 67 | visible: stack.depth > 1 |
68 | iconName: Kube.Icons.goBack | 68 | iconName: Kube.Icons.goBack |
69 | onClicked: stack.pop() | 69 | onClicked: { |
70 | if(stack.depth == 1) | ||
71 | root.currentContact = "" | ||
72 | stack.pop() | ||
73 | } | ||
70 | } | 74 | } |
71 | Kube.TextField { | 75 | Kube.TextField { |
72 | id: searchBar | 76 | id: searchBar |
@@ -229,7 +233,6 @@ FocusScope { | |||
229 | right: parent.right | 233 | right: parent.right |
230 | margins: Kube.Units.largeSpacing | 234 | margins: Kube.Units.largeSpacing |
231 | } | 235 | } |
232 | |||
233 | text: "Edit" | 236 | text: "Edit" |
234 | 237 | ||
235 | onClicked: { | 238 | onClicked: { |
@@ -239,7 +242,6 @@ FocusScope { | |||
239 | } | 242 | } |
240 | } | 243 | } |
241 | 244 | ||
242 | |||
243 | Component { | 245 | Component { |
244 | id: personComposer | 246 | id: personComposer |
245 | 247 | ||
@@ -248,7 +250,7 @@ FocusScope { | |||
248 | 250 | ||
249 | Kube.ContactController { | 251 | Kube.ContactController { |
250 | id: contactController | 252 | id: contactController |
251 | contact: "" | 253 | contact: root.currentContact |
252 | } | 254 | } |
253 | 255 | ||
254 | color: Kube.Colors.viewBackgroundColor | 256 | color: Kube.Colors.viewBackgroundColor |