Fix a bug in search engine and enhance grouped operations displays
This commit is contained in:
@@ -40,8 +40,8 @@ EVT_GRID_CELL_LEFT_CLICK(GridAccount::OnCellLeftClick )
|
||||
END_EVENT_TABLE()
|
||||
|
||||
enum {GRID_ID};
|
||||
GridAccount::GridAccount(KissCount* kiss, wxWindow *parent, wxWindowID id) : wxGrid(parent, id), _fixCosts(0), _week1(0),
|
||||
_week2(0), _week3(0), _week4(0), _kiss(kiss),
|
||||
GridAccount::GridAccount(KissCount* kiss, wxWindow *parent, wxWindowID id) : wxGrid(parent, id), _fixCosts(0), _week1(0),
|
||||
_week2(0), _week3(0), _week4(0), _parent(parent), _kiss(kiss),
|
||||
_loadOperations(false),
|
||||
_curMonth(0), _curYear(0)
|
||||
{
|
||||
@@ -676,6 +676,7 @@ void GridAccount::OnOperationModified(wxGridEvent& event)
|
||||
|
||||
ComputeWeeks();
|
||||
inModification = false;
|
||||
_parent->Fit();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -61,6 +61,7 @@ public:
|
||||
std::vector<Operation> _displayedOperations;
|
||||
|
||||
private:
|
||||
wxWindow* _parent;
|
||||
KissCount* _kiss;
|
||||
bool _displayLines;
|
||||
wxString* _categories, *_accounts;
|
||||
|
||||
Reference in New Issue
Block a user