Skip to content

Commit 19261f0

Browse files
committed
Silence
1 parent 5c93666 commit 19261f0

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/core/qgsfeaturefiltermodel.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,9 @@ void QgsFeatureFilterModel::setExtraIdentifierValueUnguarded( const QVariant &ex
416416
int index = 0;
417417
for ( const Entry &entry : entries )
418418
{
419-
if ( entry.identifierValue == extraIdentifierValue && entry.identifierValue.isNull() == extraIdentifierValue.isNull() && entry.identifierValue.isValid() == extraIdentifierValue.isValid() )
419+
if ( entry.identifierValue == extraIdentifierValue
420+
&& entry.identifierValue.isNull() == extraIdentifierValue.isNull()
421+
&& entry.identifierValue.isValid() == extraIdentifierValue.isValid() )
420422
{
421423
setExtraIdentifierValueIndex( index );
422424
break;
@@ -434,6 +436,7 @@ void QgsFeatureFilterModel::setExtraIdentifierValueUnguarded( const QVariant &ex
434436
else
435437
mEntries.prepend( Entry( extraIdentifierValue, QStringLiteral( "(%1)" ).arg( extraIdentifierValue.toString() ), QgsFeature() ) );
436438
endInsertRows();
439+
437440
setExtraIdentifierValueIndex( 0 );
438441

439442
reloadCurrentFeature();

src/core/qgsmaplayer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,6 @@ QString QgsMapLayer::loadNamedProperty( const QString &uri, QgsMapLayer::Propert
11661166
{
11671167
QgsDebugMsgLevel( QString( "uri = %1 myURI = %2" ).arg( uri, publicSource() ), 4 );
11681168

1169-
QgsDebugMsg( "loadNamedProperty" );
11701169
resultFlag = false;
11711170

11721171
QDomDocument myDocument( QStringLiteral( "qgis" ) );

src/core/qgsrelation.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,33 +345,33 @@ void QgsRelation::updateRelationStatus()
345345
{
346346
if ( !mReferencedLayer )
347347
{
348-
QgsDebugMsg( QString( "Invalid relation: referenced layer does not exist. ID: %1" ).arg( mReferencedLayerId ) );
348+
QgsDebugMsgLevel( QStringLiteral( "Invalid relation: referenced layer does not exist. ID: %1" ).arg( mReferencedLayerId ), 4 );
349349
mValid = false;
350350
}
351351
else if ( !mReferencingLayer )
352352
{
353-
QgsDebugMsg( QString( "Invalid relation: referencing layer does not exist. ID: %2" ).arg( mReferencingLayerId ) );
353+
QgsDebugMsgLevel( QStringLiteral( "Invalid relation: referencing layer does not exist. ID: %2" ).arg( mReferencingLayerId ), 4 );
354354
mValid = false;
355355
}
356356
else
357357
{
358358
if ( mFieldPairs.count() < 1 )
359359
{
360-
QgsDebugMsg( "Invalid relation: no pair of field is specified." );
360+
QgsDebugMsgLevel( "Invalid relation: no pair of field is specified.", 4 );
361361
mValid = false;
362362
}
363363

364364
Q_FOREACH ( const FieldPair &fieldPair, mFieldPairs )
365365
{
366366
if ( -1 == mReferencingLayer->fields().lookupField( fieldPair.first ) )
367367
{
368-
QgsDebugMsg( QString( "Invalid relation: field %1 does not exist in referencing layer %2" ).arg( fieldPair.first, mReferencingLayer->name() ) );
368+
QgsDebugMsg( QStringLiteral( "Invalid relation: field %1 does not exist in referencing layer %2" ).arg( fieldPair.first, mReferencingLayer->name() ) );
369369
mValid = false;
370370
break;
371371
}
372372
else if ( -1 == mReferencedLayer->fields().lookupField( fieldPair.second ) )
373373
{
374-
QgsDebugMsg( QString( "Invalid relation: field %1 does not exist in referencedg layer %2" ).arg( fieldPair.second, mReferencedLayer->name() ) );
374+
QgsDebugMsg( QStringLiteral( "Invalid relation: field %1 does not exist in referencedg layer %2" ).arg( fieldPair.second, mReferencedLayer->name() ) );
375375
mValid = false;
376376
break;
377377
}

0 commit comments

Comments
 (0)