File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -206,9 +206,9 @@ QgsActiveLayerFeaturesLocatorFilter *QgsActiveLayerFeaturesLocatorFilter::clone(
206
206
return new QgsActiveLayerFeaturesLocatorFilter ();
207
207
}
208
208
209
- void QgsActiveLayerFeaturesLocatorFilter::prepare ( const QString &string, const QgsLocatorContext & )
209
+ void QgsActiveLayerFeaturesLocatorFilter::prepare ( const QString &string, const QgsLocatorContext &context )
210
210
{
211
- if ( string.length () < 3 )
211
+ if ( string.length () < 3 || context. usingPrefix )
212
212
return ;
213
213
214
214
bool allowNumeric = false ;
@@ -317,9 +317,9 @@ QgsAllLayersFeaturesLocatorFilter *QgsAllLayersFeaturesLocatorFilter::clone() co
317
317
return new QgsAllLayersFeaturesLocatorFilter ();
318
318
}
319
319
320
- void QgsAllLayersFeaturesLocatorFilter::prepare ( const QString &string, const QgsLocatorContext & )
320
+ void QgsAllLayersFeaturesLocatorFilter::prepare ( const QString &string, const QgsLocatorContext &context )
321
321
{
322
- if ( string.length () < 3 )
322
+ if ( string.length () < 3 || context. usingPrefix )
323
323
return ;
324
324
325
325
const QMap<QString, QgsMapLayer *> layers = QgsProject::instance ()->mapLayers ();
You can’t perform that action at this time.
0 commit comments