on xenial help sign in
close search onPressed outside of the header
f999de5Michael Zanetti
qml/Components/PageHeader.qml+6−2
@@ -86,9 +86,13 @@ Item {
86
86
87 InverseMouseArea {
87 InverseMouseArea {
88 anchors.fill: parent
88 anchors.fill: parent
89− visible: headerContainer.popover !== null
89+ visible: searchTextField.activeFocus
90 onPressed: {
90 onPressed: {
91+ if (headerContainer.popover) {
91− PopupUtils.close(headerContainer.popover);
92+ PopupUtils.close(headerContainer.popover);
93+ } else {
94+ headerContainer.showSearch = false;
95+ }
92 }
96 }
93 }
97 }
94
98