Skip to content

Commit

Permalink
Lambda indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jan 5, 2018
1 parent 9c85334 commit c1677c5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/providers/ogr/qgsogrprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4050,12 +4050,15 @@ void QgsOgrProvider::open( OpenMode mode )
}
}

// Connect
// Updates capabilities when the subset string changes, it needs to be
// asynchronous because if called directly if will recurse
if ( mode == OpenModeInitial )
connect( this, &QgsOgrProvider::capabilitiesNeedUpdate, this, [ = ]
{
computeCapabilities();
} );
connect( this, &QgsOgrProvider::capabilitiesNeedUpdate, this, [ = ]
{
computeCapabilities();
} );
}

// For debug/testing purposes
if ( !mValid )
Expand Down

0 comments on commit c1677c5

Please sign in to comment.