Skip to content

Commit

Permalink
Fix activation of paste action after cut/copy
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Mar 20, 2013
1 parent fef8032 commit e2c80d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5257,6 +5257,7 @@ void QgisApp::editCut( QgsMapLayer * layerContainingSelection )
selectionVectorLayer->beginEditCommand( tr( "Features cut" ) );
selectionVectorLayer->deleteSelectedFeatures();
selectionVectorLayer->endEditCommand();
activateDeactivateLayerRelatedActions( activeLayer() );
}

void QgisApp::editCopy( QgsMapLayer * layerContainingSelection )
Expand All @@ -5272,6 +5273,7 @@ void QgisApp::editCopy( QgsMapLayer * layerContainingSelection )

// Test for feature support in this layer
clipboard()->replaceWithCopyOf( selectionVectorLayer );
activateDeactivateLayerRelatedActions( activeLayer() );
}


Expand Down

0 comments on commit e2c80d3

Please sign in to comment.