Skip to content
Permalink
Browse files

Cast to QgsProcessingAlgorithm when evaluating in-place support

  • Loading branch information
elpaso authored and nyalldawson committed Sep 14, 2018
1 parent ab69724 commit b6f1634009466316a15a9777a000f745a7284b33
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/processing/qgsprocessingtoolboxmodel.cpp
@@ -722,7 +722,7 @@ bool QgsProcessingToolboxProxyModel::filterAcceptsRow( int sourceRow, const QMod
if ( !supportsInPlace )
return false;

const QgsProcessingFeatureBasedAlgorithm *alg = dynamic_cast< const QgsProcessingFeatureBasedAlgorithm * >( mModel->algorithmForIndex( sourceIndex ) );
const QgsProcessingAlgorithm *alg = dynamic_cast< const QgsProcessingAlgorithm * >( mModel->algorithmForIndex( sourceIndex ) );
if ( !( mInPlaceLayer && alg && alg->supportInPlaceEdit( mInPlaceLayer ) ) )
{
return false;

0 comments on commit b6f1634

Please sign in to comment.
You can’t perform that action at this time.