From: <vo...@us...> - 2012-01-02 15:31:09
|
Revision: 1591 http://moneymanagerex.svn.sourceforge.net/moneymanagerex/?rev=1591&view=rev Author: vomikan Date: 2012-01-02 15:31:03 +0000 (Mon, 02 Jan 2012) Log Message: ----------- Updated Modified Paths: -------------- trunk/mmex/src/transdialog.cpp Modified: trunk/mmex/src/transdialog.cpp =================================================================== --- trunk/mmex/src/transdialog.cpp 2012-01-02 14:47:36 UTC (rev 1590) +++ trunk/mmex/src/transdialog.cpp 2012-01-02 15:31:03 UTC (rev 1591) @@ -1234,9 +1234,13 @@ break; } } + } else { - bPayee_->SetLabel(filtd.Item(c)); + c = 0; } + + //wxSafeShowMessage(currentPayeeName, wxString::Format(wxT("%i"), payeeID_)); + } else { filtd = mmDBWrapper::getAccountsName(db_.get()); for (int i = 0; i < filtd.GetCount(); ++i) { @@ -1248,11 +1252,16 @@ } if (event.GetKeyCode()==WXK_DOWN) { if (c < (filtd.GetCount()-1)) - bPayee_->SetLabel(filtd.Item(++c)); + currentPayeeName = filtd.Item(++c); + bPayee_->SetLabel(currentPayeeName); } else if (event.GetKeyCode()==WXK_UP){ if (c > 0) - bPayee_->SetLabel(filtd.Item(--c)); + currentPayeeName = filtd.Item(--c); + bPayee_->SetLabel(currentPayeeName); } + currentPayeeName = filtd.Item(c); + bPayee_->SetLabel(currentPayeeName); + payeeID_ = core_->payeeList_.getPayeeID(currentPayeeName); } void mmTransDialog::onChoiceTransChar(wxKeyEvent& event) @@ -1303,14 +1312,18 @@ } } } else { - c=0; - } + c = 0; + toAccountName = filtd.Item(c); + } if (event.GetKeyCode()==WXK_DOWN) { if (c < (filtd.GetCount()-1)) - bTo_->SetLabel(filtd.Item(++c)); + toAccountName = filtd.Item(++c); + bTo_->SetLabel(toAccountName); } else if (event.GetKeyCode()==WXK_UP){ if (c > 0) - bTo_->SetLabel(filtd.Item(--c)); + toAccountName = filtd.Item(--c); + bTo_->SetLabel(toAccountName); } + toID_ = mmDBWrapper::getAccountID(db_.get(), toAccountName); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |