Skip to content
Browse files

fix edit actions remaining active when switching to a raster layer

git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
borysiasty committed Apr 30, 2010
1 parent 31f4b74 commit 3a1746c353b178f416770cfa75d6ff059c4ffc94
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/app/qgisapp.cpp
@@ -5891,6 +5891,10 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
mActionPasteFeatures->setEnabled( false );
mActionRotatePointSymbols->setEnabled( false );
mActionDeletePart->setEnabled( false );
mActionDeleteRing->setEnabled( false );
mActionSimplifyFeature->setEnabled( false );
mActionReshapeFeatures->setEnabled( false );
mActionSplitFeatures->setEnabled( false );

//NOTE: This check does not really add any protection, as it is called on load not on layer select/activate
//If you load a layer with a provider and idenitfy ability then load another without, the tool would be disabled for both

0 comments on commit 3a1746c

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