diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-23 14:04:18 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-23 14:28:15 +0200 |
commit | 962c2ca25b9c2447e9577d11dc8afa0586e52b85 (patch) | |
tree | a06510b65b46d275e1366a33dc280579c5cdb7fb /framework/qml/View.qml | |
parent | e0604f713649186507db37be54cc3aaadcd99663 (diff) | |
download | kube-962c2ca25b9c2447e9577d11dc8afa0586e52b85.tar.gz kube-962c2ca25b9c2447e9577d11dc8afa0586e52b85.zip |
Only trigger the serach if the view is actually visible.
Diffstat (limited to 'framework/qml/View.qml')
-rw-r--r-- | framework/qml/View.qml | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
31 | property string filter: "" | 31 | property string filter: "" |
32 | property var searchObject: null | 32 | property var searchObject: null |
33 | function triggerSearch() { | 33 | function triggerSearch() { |
34 | if (!searchObject) { | 34 | if (!searchObject && Controls2.StackView.visible) { |
35 | searchObject = searchComponent.createObject(root) | 35 | searchObject = searchComponent.createObject(root) |
36 | } | 36 | } |
37 | } | 37 | } |