Bad account updated when it's changed on MainPanel

This commit is contained in:
Grégory Soutadé 2018-03-25 17:33:01 +02:00
parent caee84b38c
commit 9133973148
3 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
v0.7 (11/03/2018) v0.7 (25/03/2018)
** User ** ** User **
Set background calendar color to red or yellow when one account is negative or less than 200€ (configurable) Set background calendar color to red or yellow when one account is negative or less than 200€ (configurable)
Add start date and end date for accounts, so don't need to hide it when it's closed Add start date and end date for accounts, so don't need to hide it when it's closed
@ -26,6 +26,8 @@ v0.7 (11/03/2018)
Prevent integer overflow when computing percents in CostRepartitionBanner Prevent integer overflow when computing percents in CostRepartitionBanner
Fix some bugs in yearTo selection & fill in GenerateDialog Fix some bugs in yearTo selection & fill in GenerateDialog
Don't count virtual operations in check mode Don't count virtual operations in check mode
Bad account updated when it's changed on MainPanel
v0.6 (08/10/2016) v0.6 (08/10/2016)
** User ** ** User **

1
TODO
View File

@ -18,7 +18,6 @@ More translations
Printing (maybe in xml/html) Printing (maybe in xml/html)
Refactor web view code Refactor web view code
Plugins ? Plugins ?
Qt 5
=============================================================== ===============================================================
Will not be implemented Will not be implemented

View File

@ -785,7 +785,7 @@ void AccountPanel::OnAccountModified(int row, int column)
{ {
User* user = _kiss->GetUser(); User* user = _kiss->GetUser();
int amount; int amount;
int id = user->GetAccountId(_accounts[row]); int id = user->GetAccountId(_accountsGrid->item(row, ACCOUNT_NAME)->text());
if (_inModification || column != ACCOUNT_INIT) return; if (_inModification || column != ACCOUNT_INIT) return;