Allow cancelling of a split paste

Currently when you paste a split you can not cancel the changes as they
are already committed. By opening the transaction for editing before
the split paste the cancel option is now available.
This commit is contained in:
Robert Fewell 2019-06-07 13:38:25 +01:00
parent a7f3f5213f
commit cf3e9239e2

View File

@ -953,6 +953,10 @@ gnc_split_register_paste_current (SplitRegister *reg)
}
}
/* Open the transaction for editing. */
if (gnc_split_register_begin_edit_or_warn (info, trans))
{
LEAVE("can't begin editing");
return;
}