on xenial help sign in
More verbose name
7a9c869Albert Astals
qml/Dash/PageHeader.qml+3−3
@@ -66,7 +66,7 @@ Item {
66
66
67 function closePopup(keepFocus) {
67 function closePopup(keepFocus) {
68 if (headerContainer.popover != null) {
68 if (headerContainer.popover != null) {
69− headerContainer.popover.unfocus = !keepFocus;
69+ headerContainer.popover.unfocusOnDestruction = !keepFocus;
70 PopupUtils.close(headerContainer.popover);
70 PopupUtils.close(headerContainer.popover);
71 } else if (!keepFocus) {
71 } else if (!keepFocus) {
72 unfocus();
72 unfocus();
@@ -309,11 +309,11 @@ Item {
309 id: popover
309 id: popover
310 autoClose: false
310 autoClose: false
311
311
312− property bool unfocus: false
312+ property bool unfocusOnDestruction: false
313
313
314 Component.onDestruction: {
314 Component.onDestruction: {
315 headerContainer.popover = null;
315 headerContainer.popover = null;
316− if (unfocus) {
316+ if (unfocusOnDestruction) {
317 root.unfocus();
317 root.unfocus();
318 }
318 }
319 }
319 }