diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-12-27 15:49:20 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-12-27 15:49:20 +0100 |
commit | 3ae11ebb63e1b816161d2421114f3664adfc0d78 (patch) | |
tree | cd9ae4e05eb2389d5c6e2cbaa59006e40d61b23d | |
parent | 9475350e7cd26eff4bc3dfd3424be6763e57d666 (diff) | |
download | kube-3ae11ebb63e1b816161d2421114f3664adfc0d78.tar.gz kube-3ae11ebb63e1b816161d2421114f3664adfc0d78.zip |
Avoid focusing a draft by default.
We somehow ended up with currentIndex = 1, not quite sure how
-rw-r--r-- | components/kube/qml/ComposerView.qml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/kube/qml/ComposerView.qml b/components/kube/qml/ComposerView.qml index 9119de27..ac45f5c8 100644 --- a/components/kube/qml/ComposerView.qml +++ b/components/kube/qml/ComposerView.qml | |||
@@ -78,7 +78,6 @@ Kube.View { | |||
78 | function closeFirstSplitIfNecessary() { | 78 | function closeFirstSplitIfNecessary() { |
79 | //Move the view forward | 79 | //Move the view forward |
80 | if (root.currentIndex == 0) { | 80 | if (root.currentIndex == 0) { |
81 | listView.currentIndex = -1 | ||
82 | root.incrementCurrentIndex() | 81 | root.incrementCurrentIndex() |
83 | } | 82 | } |
84 | } | 83 | } |
@@ -114,6 +113,7 @@ Kube.View { | |||
114 | focus: true | 113 | focus: true |
115 | text: qsTr("New Email") | 114 | text: qsTr("New Email") |
116 | onClicked: { | 115 | onClicked: { |
116 | listView.currentIndex = -1 | ||
117 | composerController.clear() | 117 | composerController.clear() |
118 | subject.forceActiveFocus() | 118 | subject.forceActiveFocus() |
119 | } | 119 | } |
@@ -135,6 +135,8 @@ Kube.View { | |||
135 | 135 | ||
136 | Layout.fillHeight: true | 136 | Layout.fillHeight: true |
137 | clip: true | 137 | clip: true |
138 | currentIndex: -1 | ||
139 | highlightFollowsCurrentItem: false | ||
138 | 140 | ||
139 | //BEGIN keyboard nav | 141 | //BEGIN keyboard nav |
140 | onActiveFocusChanged: { | 142 | onActiveFocusChanged: { |