Skip to content

Commit

Permalink
Fix removing wrong transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Leinnan committed Jul 7, 2018
1 parent de68c9a commit 0ec48da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/account.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ void la::Account::replaceTransactionWithUid(const QUuid &uid, const la::Transact

void la::Account::removeTransaction(const int &index)
{
m_transactions.erase(m_transactions.begin()+index-1);
m_transactions.erase(m_transactions.begin()+index);

updateAccountBalance();
sortTransactions();
Expand Down

0 comments on commit 0ec48da

Please sign in to comment.