Fix clearing user search field text when switching rooms
(cherry picked from commit 9ba6b2f0a5)
This commit is contained in:
committed by
Carl Schwan
parent
5cce3bd692
commit
b949092bc6
@@ -80,6 +80,10 @@ Kirigami.OverlayDrawer {
|
|||||||
|
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
||||||
|
function clearSearch() {
|
||||||
|
userListView.headerItem.userListSearchField.text = ""
|
||||||
|
}
|
||||||
|
|
||||||
QQC2.ToolBar {
|
QQC2.ToolBar {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
@@ -339,7 +343,7 @@ Kirigami.OverlayDrawer {
|
|||||||
|
|
||||||
onRoomChanged: {
|
onRoomChanged: {
|
||||||
if (loader.active) {
|
if (loader.active) {
|
||||||
loader.item.userSearchText = ""
|
loader.item.clearSearch()
|
||||||
loader.item.highlightedUser = -1
|
loader.item.highlightedUser = -1
|
||||||
}
|
}
|
||||||
if (room == null) {
|
if (room == null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user