Commit de6d2425 authored by Thomas Baumgart's avatar Thomas Baumgart
Browse files

Keep values stored in splits when editing invest transactions

Values stored in splits provided e.g. by online banking plugins were
erased when a transaction was edited.

This change make sure that this information is remained unmodified.

BUG: 415257
FIXED-IN: 5.0.8
parent bfe1cc0d
......@@ -211,6 +211,13 @@ bool Activity::createCategorySplits(const MyMoneyTransaction& t, KMyMoneyCategor
if (!cat->isSplitTransaction()) {
splits.clear();
MyMoneySplit s1;
// base the resulting split on the original split
// that was provided which avoids loosing data
// stored in the split
if (!osplits.isEmpty()) {
s1 = osplits.first();
s1.clearId();
}
QString categoryId;
categoryId = cat->selectedItem();
if (!categoryId.isEmpty()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment