mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
fix crash on start edit - check if edited
git-svn-id: http://svn.osgeo.org/qgis/trunk@3050 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
01d477dee7
commit
81b20c5928
@ -611,7 +611,11 @@ std::vector<QgsField> const & QgsGrassProvider::fields() const
|
||||
return mLayers[mLayerId].fields;
|
||||
}
|
||||
|
||||
void QgsGrassProvider::reset(){
|
||||
void QgsGrassProvider::reset()
|
||||
{
|
||||
if ( isEdited() )
|
||||
return;
|
||||
|
||||
int mapId = mLayers[mLayerId].mapId;
|
||||
if ( mapOutdated(mapId) ) {
|
||||
updateMap ( mapId );
|
||||
|
Loading…
x
Reference in New Issue
Block a user