Skip to content
Permalink
Browse files

Ensure the vector editing icon stays in a consistent state

git-svn-id: http://svn.osgeo.org/qgis/trunk@11842 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Oct 25, 2009
1 parent 238aa75 commit 1dded61b6e458797319711778db9841dc6f30f29
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/qgisapp.cpp
@@ -4557,6 +4557,7 @@ void QgisApp::toggleEditing( QgsMapLayer *layer )
}
else //cancel
{
mActionToggleEditing->setChecked( vlayer->isEditable() );
return;
}
}
@@ -4566,8 +4567,12 @@ void QgisApp::toggleEditing( QgsMapLayer *layer )
}

if ( layer == mMapLegend->currentLayer() )
{
activateDeactivateLayerRelatedActions( layer );
}

//ensure the toolbar icon state is consistent with the layer editing state
mActionToggleEditing->setChecked( vlayer->isEditable() );
vlayer->triggerRepaint();
}

0 comments on commit 1dded61

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