From 962c2ca25b9c2447e9577d11dc8afa0586e52b85 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 23 Jul 2018 14:04:18 +0200 Subject: Only trigger the serach if the view is actually visible. --- framework/qml/View.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework') diff --git a/framework/qml/View.qml b/framework/qml/View.qml index d8e32fab..4e9b6414 100644 --- a/framework/qml/View.qml +++ b/framework/qml/View.qml @@ -31,7 +31,7 @@ FocusScope { property string filter: "" property var searchObject: null function triggerSearch() { - if (!searchObject) { + if (!searchObject && Controls2.StackView.visible) { searchObject = searchComponent.createObject(root) } } -- cgit v1.2.3