diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-06-22 09:12:51 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-06-22 09:12:51 +0200 |
commit | 76c5125052cb7deb116fbdf453e5512b6d79ca4b (patch) | |
tree | 4a76a9c0b5eec15f9babdd97e8cc27720eb2a67c /components | |
parent | 4f8f00e259e98be99e66841ac403a56601589591 (diff) | |
download | kube-76c5125052cb7deb116fbdf453e5512b6d79ca4b.tar.gz kube-76c5125052cb7deb116fbdf453e5512b6d79ca4b.zip |
close dialogs when finished
Diffstat (limited to 'components')
-rw-r--r-- | components/package/contents/ui/AccountSwitcher.qml | 3 | ||||
-rw-r--r-- | components/package/contents/ui/NewAccountDialog.qml | 6 |
2 files changed, 7 insertions, 2 deletions
diff --git a/components/package/contents/ui/AccountSwitcher.qml b/components/package/contents/ui/AccountSwitcher.qml index 5950dab7..b0d48694 100644 --- a/components/package/contents/ui/AccountSwitcher.qml +++ b/components/package/contents/ui/AccountSwitcher.qml | |||
@@ -79,6 +79,7 @@ Button { | |||
79 | 79 | ||
80 | onClicked: { | 80 | onClicked: { |
81 | newAccountComponent.createObject(app) | 81 | newAccountComponent.createObject(app) |
82 | dialog.visible = false | ||
82 | } | 83 | } |
83 | 84 | ||
84 | Component { | 85 | Component { |
@@ -103,6 +104,7 @@ Button { | |||
103 | 104 | ||
104 | onClicked: { | 105 | onClicked: { |
105 | syncAction.execute() | 106 | syncAction.execute() |
107 | dialog.visible = false | ||
106 | } | 108 | } |
107 | } | 109 | } |
108 | } | 110 | } |
@@ -166,6 +168,7 @@ Button { | |||
166 | 168 | ||
167 | onClicked: { | 169 | onClicked: { |
168 | editAccountComponent.createObject(app) | 170 | editAccountComponent.createObject(app) |
171 | dialog.visible = false | ||
169 | } | 172 | } |
170 | 173 | ||
171 | Component { | 174 | Component { |
diff --git a/components/package/contents/ui/NewAccountDialog.qml b/components/package/contents/ui/NewAccountDialog.qml index d46728a5..975f7a32 100644 --- a/components/package/contents/ui/NewAccountDialog.qml +++ b/components/package/contents/ui/NewAccountDialog.qml | |||
@@ -37,8 +37,8 @@ KubeComponents.OverlayDialog { | |||
37 | 37 | ||
38 | anchors.centerIn: parent | 38 | anchors.centerIn: parent |
39 | 39 | ||
40 | height: root.height * 0.8 | 40 | height: parent.height * 0.8 |
41 | width: root.width * 0.8 | 41 | width: parent.width * 0.8 |
42 | 42 | ||
43 | ToolBar { | 43 | ToolBar { |
44 | id: toolBar | 44 | id: toolBar |
@@ -108,6 +108,7 @@ KubeComponents.OverlayDialog { | |||
108 | 108 | ||
109 | onClicked: { | 109 | onClicked: { |
110 | accountsController.createAccount("imap"); | 110 | accountsController.createAccount("imap"); |
111 | root.closeDialog() | ||
111 | //stack.push(imap) | 112 | //stack.push(imap) |
112 | } | 113 | } |
113 | } | 114 | } |
@@ -120,6 +121,7 @@ KubeComponents.OverlayDialog { | |||
120 | 121 | ||
121 | onClicked: { | 122 | onClicked: { |
122 | accountsController.createAccount("maildir"); | 123 | accountsController.createAccount("maildir"); |
124 | root.closeDialog() | ||
123 | //stack.push(maildir) | 125 | //stack.push(maildir) |
124 | } | 126 | } |
125 | } | 127 | } |