From 512642db18d6bb997ef0ac561e1af9fb31e8f517 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Tue, 25 Jun 2019 15:24:03 +1000 Subject: [PATCH] [processing] Disable "use selected features" checkbox when loading a non-project layer (since these layers can never have selections) --- src/gui/processing/qgsprocessingmaplayercombobox.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/processing/qgsprocessingmaplayercombobox.cpp b/src/gui/processing/qgsprocessingmaplayercombobox.cpp index de3610f8257..df682b4239a 100644 --- a/src/gui/processing/qgsprocessingmaplayercombobox.cpp +++ b/src/gui/processing/qgsprocessingmaplayercombobox.cpp @@ -195,6 +195,11 @@ void QgsProcessingMapLayerComboBox::setValue( const QVariant &value, QgsProcessi if ( !found ) { const QString string = val.toString(); + if ( mUseSelectionCheckBox ) + { + mUseSelectionCheckBox->setChecked( false ); + mUseSelectionCheckBox->setEnabled( false ); + } if ( !string.isEmpty() ) { mBlockChangedSignal++;