Skip to content
Permalink
Browse files

Partially revert ab3adc6

The deselect action applies to ALL map layers, so it should always
be enabled, even when a vector layer isn't the current selection

(cherry picked from commit d61f410)
  • Loading branch information
nyalldawson committed Jan 28, 2019
1 parent 33660ce commit ea9ef3af377d6a30ea16cc7d1aab03bb665e226a
Showing with 0 additions and 3 deletions.
  1. +0 −3 src/app/qgisapp.cpp
@@ -12292,7 +12292,6 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer *layer )
mActionLabeling->setEnabled( false );
mActionOpenTable->setEnabled( false );
mActionSelectAll->setEnabled( false );
mActionDeselectAll->setEnabled( false );
mActionInvertSelection->setEnabled( false );
mActionOpenFieldCalc->setEnabled( false );
mActionToggleEditing->setEnabled( false );
@@ -12422,7 +12421,6 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer *layer )
mActionSelectByForm->setEnabled( true );
mActionOpenTable->setEnabled( true );
mActionSelectAll->setEnabled( true );
mActionDeselectAll->setEnabled( true );
mActionInvertSelection->setEnabled( true );
mActionSaveLayerDefinition->setEnabled( true );
mActionLayerSaveAs->setEnabled( true );
@@ -12648,7 +12646,6 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer *layer )
mActionZoomToSelected->setEnabled( false );
mActionOpenTable->setEnabled( false );
mActionSelectAll->setEnabled( false );
mActionDeselectAll->setEnabled( false );
mActionInvertSelection->setEnabled( false );
mActionSelectByExpression->setEnabled( false );
mActionSelectByForm->setEnabled( false );

0 comments on commit ea9ef3a

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