Skip to content

Commit 80ecf23

Browse files
author
jef
committedNov 10, 2009
fix crash on toggle editing
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12075 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ void QgisApp::createActions()
695695
mActionDeleteSelected->setEnabled( false );
696696

697697
//these three tools to be deprecated - use node tool rather
698-
/**
698+
#if 0
699699
mActionAddVertex = new QAction( getThemeIcon( "mActionAddVertex.png" ), tr( "Add Vertex" ), this );
700700
shortcuts->registerAction( mActionAddVertex );
701701
mActionAddVertex->setStatusTip( tr( "Add Vertex" ) );
@@ -713,7 +713,7 @@ void QgisApp::createActions()
713713
mActionDeleteVertex->setStatusTip( tr( "Delete Vertex" ) );
714714
connect( mActionDeleteVertex, SIGNAL( triggered() ), this, SLOT( deleteVertex() ) );
715715
mActionDeleteVertex->setEnabled( false );
716-
*/
716+
#endif
717717

718718
mActionAddRing = new QAction( getThemeIcon( "mActionAddRing.png" ), tr( "Add Ring" ), this );
719719
shortcuts->registerAction( mActionAddRing );
@@ -5728,10 +5728,11 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
57285728
mActionCapturePolygon->setEnabled( false );
57295729
mActionCaptureLine->setVisible( false );
57305730
mActionCapturePolygon->setVisible( false );
5731-
//these three tools to be deprecated - use node tool rather
5732-
//mActionAddVertex->setEnabled( false );
5733-
//mActionDeleteVertex->setEnabled( false );
5734-
//mActionMoveVertex->setEnabled( false );
5731+
#if 0 //these three tools to be deprecated - use node tool rather
5732+
mActionAddVertex->setEnabled( false );
5733+
mActionDeleteVertex->setEnabled( false );
5734+
mActionMoveVertex->setEnabled( false );
5735+
#endif
57355736
mActionAddRing->setEnabled( false );
57365737
mActionAddIsland->setEnabled( false );
57375738
mActionReshapeFeatures->setEnabled( false );
@@ -5740,10 +5741,13 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
57405741
mActionDeleteRing->setEnabled( false );
57415742
mActionRotatePointSymbols->setEnabled( false );
57425743

5744+
#if 0
57435745
if ( vlayer->isEditable() && dprovider->capabilities() & QgsVectorDataProvider::ChangeGeometries )
57445746
{
57455747
mActionMoveVertex->setEnabled( true );
57465748
}
5749+
#endif
5750+
57475751
if ( vlayer->isEditable() && dprovider->capabilities() & QgsVectorDataProvider::ChangeAttributeValues )
57485752
{
57495753
if ( QgsMapToolRotatePointSymbols::layerIsRotatable( vlayer ) )

‎src/app/qgisapp.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,9 +744,11 @@ class QgisApp : public QMainWindow
744744
QAction *mActionMoveFeature;
745745
QAction *mActionReshapeFeatures;
746746
QAction *mActionSplitFeatures;
747+
#if 0 // deprecated
747748
QAction *mActionAddVertex;
748749
QAction *mActionDeleteVertex;
749750
QAction *mActionMoveVertex;
751+
#endif
750752
QAction *mActionAddRing;
751753
QAction *mActionAddIsland;
752754
QAction *mActionEditSeparator2;
@@ -974,7 +976,7 @@ class QgisApp : public QMainWindow
974976

975977
/* Maptip object
976978
*/
977-
QgsMapTip * mpMaptip;
979+
QgsMapTip *mpMaptip;
978980

979981
// Flag to indicate if maptips are on or off
980982
bool mMapTipsVisible;

0 commit comments

Comments
 (0)
Please sign in to comment.