KissCount

KissCount Commit Details

Date:2019-07-27 14:01:56 (2 months 22 days ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:196a0cc5aba3199aff8d08cccad4aeba09b00dd9
Parents: 2865102a55e60b428e382c83877c2e1625ed3a17
Message:Fix bug: Check index in ctrl+t, ctrl+r and suppr callback to avoid doing something on non existant operation

Changes:
MChangeLog (1 diff)
Msrc/view/grid/GridAccount.cpp (4 diffs)

File differences

ChangeLog
1
2
3
4
5
6
17
28
39
v0.9 (27/07/2019)
** User **
** Dev **
** Bugs **
Check index in ctrl+t, ctrl+r and suppr callback to avoid doing something on non existant operation
v0.8 (29/01/2019)
** User **
Add multi month operation support : Normal operation with description "... (XX/YY)" will be forwarded to next month
src/view/grid/GridAccount.cpp
16701670
16711671
16721672
1673
1673
16741674
16751675
16761676
......
16781678
16791679
16801680
1681
1681
1682
1683
1684
1685
1686
16821687
16831688
16841689
......
17231728
17241729
17251730
1726
1731
1732
1733
1734
17271735
17281736
17291737
......
17461754
17471755
17481756
1757
1758
1759
17491760
17501761
17511762
{
Operation op, op2;
QModelIndexList selected = selectedIndexes();
int account, idx;
int account, idx, row;
bool groupOperations;
User* user = _kiss->GetUser();
std::vector<Operation>::iterator it;
if (selected.size() > 1 || !selected.size())
return;
op = _displayedOperations[selected[0].row()] ;
row = selected[0].row();
if (row == _fixCosts || row == (int)_displayedOperations.size()-1)
return;
op = _displayedOperations[row] ;
if (op.parent || op.meta || op.transfert)
return;
for (int i = 0; i < selected.size(); ++i)
{
row = selected[i].row();
if (row == _fixCosts || row == (int)_displayedOperations.size()-1)
continue;
it = std::find(rows.begin(), rows.end(), row);
if (it != rows.end())
{
row = selected[i].row();
if (row == _fixCosts || row == (int)_displayedOperations.size()-1)
continue;
it = std::find(rows.begin(), rows.end(), row);
if (it != rows.end())

Archive Download the corresponding diff file