[processing] Disable "use selected features" checkbox when loading

a non-project layer

(since these layers can never have selections)
This commit is contained in:
Nyall Dawson 2019-06-25 15:24:03 +10:00
parent 4a4b92223b
commit 512642db18

View File

@ -195,6 +195,11 @@ void QgsProcessingMapLayerComboBox::setValue( const QVariant &value, QgsProcessi
if ( !found ) if ( !found )
{ {
const QString string = val.toString(); const QString string = val.toString();
if ( mUseSelectionCheckBox )
{
mUseSelectionCheckBox->setChecked( false );
mUseSelectionCheckBox->setEnabled( false );
}
if ( !string.isEmpty() ) if ( !string.isEmpty() )
{ {
mBlockChangedSignal++; mBlockChangedSignal++;