When creating temporary accounts, transfer flags
This commit is contained in:
parent
b76aea7c0b
commit
a56a1db662
1 changed files with 7 additions and 1 deletions
|
|
@ -793,12 +793,18 @@ void transfer_details::operator()(post_t& post)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SET_ACCOUNT: {
|
case SET_ACCOUNT: {
|
||||||
std::list<string> account_names;
|
account_t * prev_account = temp.account;
|
||||||
temp.account->remove_post(&temp);
|
temp.account->remove_post(&temp);
|
||||||
|
|
||||||
|
std::list<string> account_names;
|
||||||
split_string(substitute.to_string(), ':', account_names);
|
split_string(substitute.to_string(), ':', account_names);
|
||||||
temp.account = create_temp_account_from_path(account_names, temps,
|
temp.account = create_temp_account_from_path(account_names, temps,
|
||||||
xact.journal->master);
|
xact.journal->master);
|
||||||
temp.account->add_post(&temp);
|
temp.account->add_post(&temp);
|
||||||
|
|
||||||
|
temp.account->add_flags(prev_account->flags());
|
||||||
|
if (prev_account->has_xdata())
|
||||||
|
temp.account->xdata().add_flags(prev_account->xdata().flags());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue