File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,8 @@ QgsActiveLayerFeaturesLocatorFilter *QgsActiveLayerFeaturesLocatorFilter::clone(
208
208
209
209
void QgsActiveLayerFeaturesLocatorFilter::prepare ( const QString &string, const QgsLocatorContext &context )
210
210
{
211
- if ( string.length () < 3 || context.usingPrefix )
211
+ // Normally skip very short search strings, unless when specifically searching using this filter
212
+ if ( string.length () < 3 && !context.usingPrefix )
212
213
return ;
213
214
214
215
bool allowNumeric = false ;
@@ -330,7 +331,8 @@ QgsAllLayersFeaturesLocatorFilter *QgsAllLayersFeaturesLocatorFilter::clone() co
330
331
331
332
void QgsAllLayersFeaturesLocatorFilter::prepare ( const QString &string, const QgsLocatorContext &context )
332
333
{
333
- if ( string.length () < 3 || context.usingPrefix )
334
+ // Normally skip very short search strings, unless when specifically searching using this filter
335
+ if ( string.length () < 3 && !context.usingPrefix )
334
336
return ;
335
337
336
338
const QMap<QString, QgsMapLayer *> layers = QgsProject::instance ()->mapLayers ();
You can’t perform that action at this time.
0 commit comments