Skip to content

Commit

Permalink
Ensure the vector editing icon stays in a consistent state
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11842 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Oct 25, 2009
1 parent 7a0fc3c commit 56ab43d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4557,6 +4557,7 @@ void QgisApp::toggleEditing( QgsMapLayer *layer )
}
else //cancel
{
mActionToggleEditing->setChecked( vlayer->isEditable() );
return;
}
}
Expand All @@ -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();
}

Expand Down

0 comments on commit 56ab43d

Please sign in to comment.