From 3ae11ebb63e1b816161d2421114f3664adfc0d78 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 27 Dec 2017 15:49:20 +0100 Subject: Avoid focusing a draft by default. We somehow ended up with currentIndex = 1, not quite sure how --- components/kube/qml/ComposerView.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { function closeFirstSplitIfNecessary() { //Move the view forward if (root.currentIndex == 0) { - listView.currentIndex = -1 root.incrementCurrentIndex() } } @@ -114,6 +113,7 @@ Kube.View { focus: true text: qsTr("New Email") onClicked: { + listView.currentIndex = -1 composerController.clear() subject.forceActiveFocus() } @@ -135,6 +135,8 @@ Kube.View { Layout.fillHeight: true clip: true + currentIndex: -1 + highlightFollowsCurrentItem: false //BEGIN keyboard nav onActiveFocusChanged: { -- cgit v1.2.3