<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">+1 for this<br><br>I was unaware of the reason for the crashes on Undo I was seeing until this thread. Our approach in Telemetry Layer was to simply end the edit session and commit the changes programmatically denying the possibility of a user undo.  A more elegant approach would be welcomed.<br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;  "><div><br></div><div>On 17/03/2015, at 9:47 am, Matthias Kuhn <<a href="mailto:matthias@opengis.ch">matthias@opengis.ch</a>> wrote:</div></span></span></span></div><div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br>On 03/16/2015 09:32 PM, Luigi Pirelli wrote:<br><blockquote type="cite">I used a different approach attaching to end Editing action to do a<br>similar work.<br>The logic is, start editing, do modification, stop editing is<br>intercepted to save EditingBuffer and then roolback all modification.<br>Then process editing buffer to create values basing on a rule and them<br>I can add/change the modified records with a new editing session<br>without user interaction.<br><br><br></blockquote>It would be so nice to be able to be able to register a trigger that is<br>executed to do this kind of things and data validation directly before<br>it enters the edit buffer.<br><br>_______________________________________________<br>Qgis-developer mailing list<br><a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/qgis-developer</blockquote></div><br></body></html>