Make sure we commit any outstanding changes before saving.
Make sure we commit any outstanding changes before saving.

[Fixes bug #671524]

PintaProject/Pinta,Fenex/Pinta,jakeclawson/Pinta,jakeclawson/Pinta,Mailaender/Pinta,Fenex/Pinta,PintaProject/Pinta,Mailaender/Pinta,PintaProject/Pinta