Skip to content
Permalink
Browse files
revert 7a9e682 and 983b1c9
  • Loading branch information
3nids committed Feb 3, 2014
1 parent 983b1c9 commit f9861f8455819249abb26c08e55b1841a3537121
Showing with 3 additions and 6 deletions.
  1. +3 −6 src/app/qgisapp.cpp
@@ -8447,7 +8447,10 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
mActionMoveLabel->setEnabled( enableMove );
mActionRotateLabel->setEnabled( enableRotate );
mActionChangeLabelProperties->setEnabled( enableChange );

mMenuPasteAs->setEnabled( clipboard() && !clipboard()->empty() );
mActionPasteAsNewVector->setEnabled( clipboard() && !clipboard()->empty() );
mActionPasteAsNewMemoryVector->setEnabled( clipboard() && !clipboard()->empty() );

updateLayerModifiedActions();

@@ -8481,8 +8484,6 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
mActionCutFeatures->setEnabled( false );
mActionCopyFeatures->setEnabled( false );
mActionPasteFeatures->setEnabled( false );
mActionPasteAsNewVector->setEnabled( false );
mActionPasteAsNewMemoryVector->setEnabled( false );
mActionCopyStyle->setEnabled( false );
mActionPasteStyle->setEnabled( false );

@@ -8594,8 +8595,6 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
}

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

mActionAddFeature->setEnabled( isEditable && canAddFeatures );

@@ -8746,8 +8745,6 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
mActionCopyFeatures->setEnabled( false );
mActionCutFeatures->setEnabled( false );
mActionPasteFeatures->setEnabled( false );
mActionPasteAsNewVector->setEnabled( false );
mActionPasteAsNewMemoryVector->setEnabled( false );
mActionRotatePointSymbols->setEnabled( false );
mActionDeletePart->setEnabled( false );
mActionDeleteRing->setEnabled( false );

0 comments on commit f9861f8

Please sign in to comment.