Skip to content

Commit b6a4412

Browse files
committedMay 25, 2020
Avoid indentation dance
1 parent 4057790 commit b6a4412

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2121,9 +2121,7 @@ const QList<QgsVectorLayerRef> QgisApp::findBrokenLayerDependencies( QgsVectorLa
21212121
! dependency.source.isEmpty() ||
21222122
! dependency.layerId.isEmpty() )
21232123
{
2124-
const QgsVectorLayer *depVl { QgsVectorLayerRef( dependency ).resolveWeakly(
2125-
QgsProject::instance(),
2126-
QgsVectorLayerRef::MatchType::Name ) };
2124+
const QgsVectorLayer *depVl { QgsVectorLayerRef( dependency ).resolveWeakly( QgsProject::instance(), QgsVectorLayerRef::MatchType::Name ) };
21272125
if ( ! depVl || ! depVl->isValid() )
21282126
{
21292127
brokenDependencies.append( dependency );
@@ -2272,9 +2270,7 @@ void QgisApp::resolveVectorLayerDependencies( QgsVectorLayer *vl, QgsMapLayer::S
22722270
}
22732271
if ( ! loaded )
22742272
{
2275-
const QString msg { tr( "layer '%1' requires layer '%2' to be loaded but '%2' could not be found, please load it manually if possible." )
2276-
.arg( vl->name() )
2277-
.arg( dependency.name ) };
2273+
const QString msg { tr( "layer '%1' requires layer '%2' to be loaded but '%2' could not be found, please load it manually if possible." ).arg( vl->name(), dependency.name ) };
22782274
messageBar()->pushWarning( tr( "Missing layer form dependency" ), msg );
22792275
}
22802276
else

0 commit comments

Comments
 (0)
Please sign in to comment.