Add Delete operation in GridAccount
Fix a bug : Forgot to update stats when there is a modification
This commit is contained in:
@@ -22,16 +22,11 @@
|
||||
#include "AccountPanel.hpp"
|
||||
/*#include "PreferencesPanel.hpp"
|
||||
#include "UsersDialog.hpp"
|
||||
#include "GenerateDialog.hpp"
|
||||
#include "SearchPanel.hpp"
|
||||
#include "StatsPanel.hpp"
|
||||
#include "ImportPanel.hpp"
|
||||
#include "ExportPanel.hpp"
|
||||
|
||||
#include "grid/wxMyGrid.hpp"
|
||||
#include "grid/wxGridCellFastBoolEditor.hpp"
|
||||
#include "grid/wxGridCellButtonRenderer.hpp"
|
||||
#include "grid/wxGridCellButtonEditor.hpp"
|
||||
*/
|
||||
#include "wxUI.hpp"
|
||||
#include "view.hpp"
|
||||
@@ -279,6 +274,12 @@ void wxUI::GenerateMonth(int month, int year)
|
||||
(dynamic_cast<AccountPanel*>(_panels[0]))->GenerateMonth(month, year);
|
||||
}
|
||||
|
||||
void wxUI::UpdateStats()
|
||||
{
|
||||
if (_curPanel == _panels[0])
|
||||
(dynamic_cast<AccountPanel*>(_panels[0]))->UpdateStats();
|
||||
}
|
||||
|
||||
void wxUI::KillMe()
|
||||
{
|
||||
std::vector<KissPanel*>::iterator it;
|
||||
|
||||
Reference in New Issue
Block a user