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:
2011-04-03 19:11:34 +02:00
parent d0b537d6c9
commit d6ade299e3
4 changed files with 11 additions and 4 deletions

View File

@@ -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);