mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
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:
parent
281a30d9e0
commit
ccc5471548
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user