[vlc-commits] [Git][videolan/vlc][master] qt: remove the minimal search pattern length in ML models
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Oct 13 09:32:26 UTC 2022
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
47c8b852 by Pierre Lamot at 2022-10-13T09:17:17+00:00
qt: remove the minimal search pattern length in ML models
1 ideogram character should be a valid search pattern
- - - - -
1 changed file:
- modules/gui/qt/medialibrary/mlbasemodel.cpp
Changes:
=====================================
modules/gui/qt/medialibrary/mlbasemodel.cpp
=====================================
@@ -288,7 +288,7 @@ const QString& MLBaseModel::searchPattern() const
void MLBaseModel::setSearchPattern( const QString& pattern )
{
- QString patternToApply = pattern.length() < 3 ? nullptr : pattern;
+ QString patternToApply = pattern.length() == 0 ? QString{} : pattern;
if (patternToApply == m_search_pattern)
/* No changes */
return;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/47c8b8528d1d8608aa2d20eddcbf7e146c338c2d
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/47c8b8528d1d8608aa2d20eddcbf7e146c338c2d
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list