Skip to content
Permalink
Browse files

Only enable update selection in field calc when we have a selection

  • Loading branch information
NathanW2 committed May 6, 2014
1 parent 753eb28 commit 2d55c6d65763d1471b58f2c19e361a13aa69d549
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/app/qgsfieldcalculator.cpp
@@ -85,7 +85,9 @@ QgsFieldCalculator::QgsFieldCalculator( QgsVectorLayer* vl )
mNewFieldGroupBox->setCheckable( false );
}

mOnlyUpdateSelectedCheckBox->setChecked( vl->selectedFeaturesIds().size() > 0 );
bool hasselection = vl->selectedFeaturesIds().size() > 0;
mOnlyUpdateSelectedCheckBox->setChecked( hasselection );
mOnlyUpdateSelectedCheckBox->setEnabled( hasselection );
}

QgsFieldCalculator::~QgsFieldCalculator()

0 comments on commit 2d55c6d

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