From: <vo...@us...> - 2012-12-30 12:23:14
|
Revision: 3267 http://moneymanagerex.svn.sourceforge.net/moneymanagerex/?rev=3267&view=rev Author: vomikan Date: 2012-12-30 12:23:04 +0000 (Sun, 30 Dec 2012) Log Message: ----------- fix Modified Paths: -------------- trunk/mmex/src/categdialog.cpp Modified: trunk/mmex/src/categdialog.cpp =================================================================== --- trunk/mmex/src/categdialog.cpp 2012-12-30 01:35:00 UTC (rev 3266) +++ trunk/mmex/src/categdialog.cpp 2012-12-30 12:23:04 UTC (rev 3267) @@ -31,7 +31,7 @@ EVT_BUTTON(wxID_REMOVE, mmCategDialog::OnDelete) EVT_BUTTON(wxID_EDIT, mmCategDialog::OnEdit) EVT_TREE_SEL_CHANGED(ID_DIALOG_CATEG_TREECTRL_CATS, mmCategDialog::OnSelChanged) - EVT_TREE_ITEM_RIGHT_CLICK(ID_DIALOG_CATEG_TREECTRL_CATS, mmCategDialog::OnSelChanged) + EVT_TREE_ITEM_RIGHT_CLICK(ID_DIALOG_CATEG_TREECTRL_CATS, mmCategDialog::OnSelChanged) EVT_TREE_ITEM_ACTIVATED(ID_DIALOG_CATEG_TREECTRL_CATS, mmCategDialog::OnDoubleClicked) EVT_MENU_RANGE(0, 9, mmCategDialog::OnMenuSelected) EVT_TREE_ITEM_MENU(ID_DIALOG_CATEG_TREECTRL_CATS, mmCategDialog::OnItemRightClick) @@ -332,8 +332,8 @@ wxString sSettings = core_->dbInfoSettings_->GetStringSetting(wxT("HIDEN_CATEGS_ID"), wxT("")); sSettings.Replace(sIndex, wxT("")); sSettings.Replace(wxT(";;"), wxT(";")); - core_->dbInfoSettings_->GetStringSetting(wxT("HIDEN_CATEGS_ID"), sSettings); - + core_->dbInfoSettings_->SetStringSetting(wxT("HIDEN_CATEGS_ID"), sSettings); + core_->dbInfoSettings_->Save(); } void mmCategDialog::OnBSelect(wxCommandEvent& /*event*/) @@ -368,9 +368,9 @@ void mmCategDialog::OnSelChanged(wxTreeEvent& event) { wxTreeItemId selectedItemId = selectedItemId_; - selectedItemId_ = event.GetItem(); + selectedItemId_ = event.GetItem(); if (!selectedItemId_) return; - if (selectedItemId != selectedItemId_) treeCtrl_->SelectItem(selectedItemId_); + if (selectedItemId != selectedItemId_) treeCtrl_->SelectItem(selectedItemId_); textCtrl_->SetValue(treeCtrl_->GetItemText(selectedItemId_)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |