Commit 245c4f0d authored by Timothée Giet's avatar Timothée Giet

fix weird Type errors when typing too fast in the search field

This is a workaround for this error happening when typing too fast in the search field:
file:///usr/lib64/qt5/qml/QtQuick/Controls/Button.qml:99: TypeError: Type error
(very easy to trigger especially when deleting text in the field...)
adding a short timer avoids this issue
parent 21e5673d
......@@ -709,10 +709,17 @@ ActivityBase {
}
placeholderText: qsTr("Search specific activities")
onTextChanged: ActivityInfoTree.filterBySearch(searchTextField.text);
onTextChanged: searchTimer.restart();
}
}
//timer to workaround some weird Type errors when typing too fast in the search field
Timer {
id: searchTimer
interval: 100
onTriggered: ActivityInfoTree.filterBySearch(searchTextField.text);
}
Rectangle {
id: activityConfigTextBar
height: activitySettingsLabel.height
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment