From: <vo...@us...> - 2012-02-06 08:33:32
|
Revision: 1751 http://moneymanagerex.svn.sourceforge.net/moneymanagerex/?rev=1751&view=rev Author: vomikan Date: 2012-02-06 08:33:26 +0000 (Mon, 06 Feb 2012) Log Message: ----------- fix Modified Paths: -------------- trunk/mmex/src/transdialog.cpp Modified: trunk/mmex/src/transdialog.cpp =================================================================== --- trunk/mmex/src/transdialog.cpp 2012-02-06 07:42:46 UTC (rev 1750) +++ trunk/mmex/src/transdialog.cpp 2012-02-06 08:33:26 UTC (rev 1751) @@ -1311,15 +1311,14 @@ void mmTransDialog::onChoiceTransChar(wxKeyEvent& event) { - wxChoice* choice = (wxChoice*)FindWindow(ID_DIALOG_TRANS_TYPE); - int i = choice->GetSelection(); + int i = choiceTrans_->GetSelection(); if (event.GetKeyCode()==WXK_DOWN) { - if (i < (mmDBWrapper::getNumAccounts(db_.get()) > 1 ? DEF_TRANSFER : DEF_DEPOSIT)) { - choice->SetSelection(++i); + if (i < (mmDBWrapper::getNumBankAccounts(db_.get()) > 1 ? DEF_TRANSFER : DEF_DEPOSIT)) { + choiceTrans_->SetSelection(++i); } } else if (event.GetKeyCode()==WXK_UP){ if (i > DEF_WITHDRAWAL){ - choice->SetSelection(--i); + choiceTrans_->SetSelection(--i); } } else { event.Skip(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |