Clear undo stack on rollback. Fixes #2287.

git-svn-id: http://svn.osgeo.org/qgis/trunk@12510 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
wonder 2009-12-19 10:29:23 +00:00
parent 281a30d9e0
commit ccc5471548

View File

@ -3414,6 +3414,8 @@ bool QgsVectorLayer::rollBack()
deleteCachedGeometries();
undoStack()->clear();
mEditable = false;
emit editingStopped();
@ -3423,7 +3425,6 @@ bool QgsVectorLayer::rollBack()
setCacheImage( 0 );
triggerRepaint();
return true;
}