From: <vo...@us...> - 2013-10-26 11:21:29
|
Revision: 4984 http://sourceforge.net/p/moneymanagerex/code/4984 Author: vomikan Date: 2013-10-26 11:21:24 +0000 (Sat, 26 Oct 2013) Log Message: ----------- fix Modified Paths: -------------- trunk/src/mmex.cpp trunk/src/transdialog.h Modified: trunk/src/mmex.cpp =================================================================== --- trunk/src/mmex.cpp 2013-10-26 11:18:37 UTC (rev 4983) +++ trunk/src/mmex.cpp 2013-10-26 11:21:24 UTC (rev 4984) @@ -3112,10 +3112,13 @@ if ( dlg.ShowModal() == wxID_OK ) { - if (gotoAccountID_ == dlg.getToAccountID() || gotoAccountID_ == dlg.getAccountID()) + gotoAccountID_ = dlg.getAccountID(); + refreshRequested_ = true; + Model_Account::Data * account = Model_Account::instance().get(gotoAccountID_); + if (account) { - refreshRequested_ = true; - createCheckingAccountPage(dlg.getAccountID()); + setAccountNavTreeSection(account->ACCOUNTNAME); + createCheckingAccountPage(gotoAccountID_); } } } Modified: trunk/src/transdialog.h =================================================================== --- trunk/src/transdialog.h 2013-10-26 11:18:37 UTC (rev 4983) +++ trunk/src/transdialog.h 2013-10-26 11:21:24 UTC (rev 4984) @@ -59,7 +59,7 @@ ); void SetDialogTitle(const wxString& title); - int getAccountID() {return newAccountID_;} + int getAccountID() { return newAccountID_; } int getToAccountID() { return transaction_->TOACCOUNTID; } int getTransactionID() { return transaction_->TRANSID; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |