delete splits when transaction is saved.
remove unused local variable
Merge pull request #251 from fefe982/dev-split-edit

Modify splits only when transaction is saved.