Skip to content
Permalink
Browse files

Clear undo stack on rollback. Fixes #2287.

git-svn-id: http://svn.osgeo.org/qgis/trunk@12510 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Dec 19, 2009
1 parent 281a30d commit ccc54715480c86366ce51ff9bf572e951be37adc
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/qgsvectorlayer.cpp
@@ -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;
}

0 comments on commit ccc5471

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