[vlc-commits] qt: make network URL comboBox case sensitive

Sagar Kohli git at videolan.org
Wed Mar 13 08:29:56 CET 2019


vlc | branch: master | Sagar Kohli <kohli.sagar2 at gmail.com> | Sat Mar  9 13:54:35 2019 +0530| [2931f2aca2c78df0444de05bb1a65a6f70a0468e] | committer: Thomas Guillem

qt: make network URL comboBox case sensitive

Fixes #19388

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 modules/gui/qt/components/open_panels.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/gui/qt/components/open_panels.cpp b/modules/gui/qt/components/open_panels.cpp
index 58f86a59b3..b9208cd58f 100644
--- a/modules/gui/qt/components/open_panels.cpp
+++ b/modules/gui/qt/components/open_panels.cpp
@@ -679,6 +679,9 @@ NetOpenPanel::NetOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
 
     /* Use a simple validator for URLs */
     ui.urlComboBox->setValidator( new UrlValidator( this ) );
+
+    /* QComboBox is by default case insensitive when editable */
+    ui.urlComboBox->completer()->setCaseSensitivity( Qt::CaseSensitive );
     ui.urlComboBox->setFocus();
 }
 



More information about the vlc-commits mailing list