From: <vo...@us...> - 2012-12-29 09:11:35
|
Revision: 3261 http://moneymanagerex.svn.sourceforge.net/moneymanagerex/?rev=3261&view=rev Author: vomikan Date: 2012-12-29 09:11:29 +0000 (Sat, 29 Dec 2012) Log Message: ----------- Bug fix for WXWIN. Not checked with WXGTK. Modified Paths: -------------- trunk/mmex/src/mmex.cpp Modified: trunk/mmex/src/mmex.cpp =================================================================== --- trunk/mmex/src/mmex.cpp 2012-12-29 09:02:02 UTC (rev 3260) +++ trunk/mmex/src/mmex.cpp 2012-12-29 09:11:29 UTC (rev 3261) @@ -2093,14 +2093,10 @@ } else if (iData->getString() == wxT("Cash Flow - Specific Accounts")) { - navTreeCtrl_->UnselectAll(); // item in navTreeCtrl_ to enable re-selection. - processPendingEvents(); // Clear event buffer before activating report. OnCashFlowSpecificAccounts(); } else if (iData->getString() == wxT("Transaction Report")) { - navTreeCtrl_->UnselectAll(); // item in navTreeCtrl_ to enable re-selection. - processPendingEvents(); // Clear event buffer before activating report. wxCommandEvent evt(wxEVT_COMMAND_MENU_SELECTED, MENU_TRANSACTIONREPORT); AddPendingEvent(evt); // Events will be processed in due course. } @@ -2211,10 +2207,13 @@ void mmGUIFrame::OnItemRightClick(wxTreeEvent& event) { - if (menuBar_->FindItem(MENU_ORGCATEGS)->IsEnabled() ) - showTreePopupMenu(event.GetItem(), event.GetPoint()); + wxTreeItemId id = event.GetItem(); + if (menuBar_->FindItem(MENU_ORGCATEGS)->IsEnabled() ) + showTreePopupMenu(id, event.GetPoint()); else wxMessageBox(_("MMEX has been opened without an active database."),_("MMEX: Menu Popup Error"), wxOK|wxICON_EXCLAMATION); + + navTreeCtrl_ ->SelectItem(id); } //---------------------------------------------------------------------------- This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |