[vlc-commits] qml: be able to close searchbox when it's not empty

Fatih Uzunoglu git at videolan.org
Thu Oct 15 10:33:05 CEST 2020


vlc | branch: master | Fatih Uzunoglu <fuzun54 at outlook.com> | Fri Oct  9 20:02:43 2020 +0300| [bf9c965a6dd2409f822e2a47f27221e1d8925dd5] | committer: Pierre Lamot

qml: be able to close searchbox when it's not empty

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bf9c965a6dd2409f822e2a47f27221e1d8925dd5
---

 modules/gui/qt/widgets/qml/SearchBox.qml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/gui/qt/widgets/qml/SearchBox.qml b/modules/gui/qt/widgets/qml/SearchBox.qml
index 2c6985b888..3d2e1ab493 100644
--- a/modules/gui/qt/widgets/qml/SearchBox.qml
+++ b/modules/gui/qt/widgets/qml/SearchBox.qml
@@ -91,6 +91,10 @@ Widgets.NavigableFocusScope {
             onClicked: {
                 if (searchBox.text == "")
                     expanded = !expanded
+                else {
+                    searchBox.clear()
+                    expanded = !expanded
+                }
             }
         }
 



More information about the vlc-commits mailing list