Display virtual accounts at the end
Fix a bug in LonkOrUnlinkOperation (when year was not previously loaded) Translate categories in PreferencesPanel
This commit is contained in:
@@ -232,6 +232,7 @@ void PreferencesPanel::AddAccount(int line, Account ac)
|
||||
_accountsGrid->SetCellRenderer(line, ACCOUNT_DELETE, new wxGridCellBoolRenderer ());
|
||||
_accountsGrid->SetCellEditor(line, ACCOUNT_DELETE, new wxGridCellBoolEditor ());
|
||||
_accountsGrid->SetCellValue(line, ACCOUNT_DEFAULT, (ac._default)?wxT("1"):wxT("0"));
|
||||
_accountsGrid->SetCellValue(line, ACCOUNT_VIRTUAL, (ac._virtual)?wxT("1"):wxT("0"));
|
||||
_accountsGrid->SetCellValue(line, ACCOUNT_BLOCKED, (ac.blocked)?wxT("1"):wxT("0"));
|
||||
|
||||
_accountsGrid->SetCellAlignment(line, ACCOUNT_DEFAULT, wxALIGN_CENTRE, wxALIGN_CENTRE);
|
||||
@@ -702,7 +703,7 @@ void PreferencesPanel::OnCategoryModified(wxGridEvent& event)
|
||||
a = 0;
|
||||
for(i=0; i < user->GetCategoriesNumber(); i++)
|
||||
if (user->_categories[i].id != new_cat.id)
|
||||
categories[++a] = user->_categories[i].name;
|
||||
categories[++a] = wxGetTranslation(user->_categories[i].name);
|
||||
wxSingleChoiceDialog dialog(_wxUI, _("Wich category will replace this one ?"), wxT("KissCount"), user->GetCategoriesNumber(), categories);
|
||||
if (dialog.ShowModal() == wxID_CANCEL)
|
||||
{
|
||||
|
||||
@@ -346,7 +346,7 @@ void SearchPanel::OnButtonChangeCategory(wxCommandEvent& event)
|
||||
categories[0] = _("None");
|
||||
a = 0;
|
||||
for(i=0; i < user->GetCategoriesNumber(); i++)
|
||||
categories[++a] = user->_categories[i].name;
|
||||
categories[++a] = wxGetTranslation(user->_categories[i].name);
|
||||
|
||||
wxSingleChoiceDialog dialog(_wxUI, _("Choose a new category"), wxT("KissCount"), user->GetCategoriesNumber()+1, categories);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user