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/qgis@11842 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Oct 25, 2009
1 parent 7a0fc3c commit 56ab43d92299588888069f5534a7cbf62a1dac3d
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 56ab43d

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