Skip to content

Commit

Permalink
fix #9430 followup 7a9e682
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 2, 2014
1 parent f80ea49 commit 983b1c9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/app/qgisapp.cpp
Expand Up @@ -8593,10 +8593,9 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
updateUndoActions();
}

bool canPasteFeatures = isEditable && canAddFeatures && !clipboard()->empty();
mActionPasteFeatures->setEnabled( canPasteFeatures );
mActionPasteAsNewVector->setEnabled( canPasteFeatures );
mActionPasteAsNewMemoryVector->setEnabled( canPasteFeatures );
mActionPasteFeatures->setEnabled( isEditable && canAddFeatures && !clipboard()->empty() );
mActionPasteAsNewVector->setEnabled( !clipboard()->empty() );
mActionPasteAsNewMemoryVector->setEnabled( !clipboard()->empty() );

mActionAddFeature->setEnabled( isEditable && canAddFeatures );

Expand Down

0 comments on commit 983b1c9

Please sign in to comment.