Skip to content

Commit

Permalink
Merge pull request #5301 from n-stein/fix(#5298)
Browse files Browse the repository at this point in the history
fix(#5298): Return to Home from Deleted Trans view
  • Loading branch information
vomikan committed Nov 2, 2022
2 parents 14a200d + f85229e commit 7c2cf11
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mmframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,10 @@ void mmGUIFrame::DoRecreateNavTreeControl()
if (Model_Checking::instance().find(Model_Checking::DELETEDTIME(wxEmptyString, NOT_EQUAL)).empty() || Option::instance().HideDeletedTransactions())
{
m_nav_tree_ctrl->Delete(trash);
if (panelCurrent_ && panelCurrent_->GetId() == mmID_DELETEDTRANSACTIONS) {
wxCommandEvent event(wxEVT_MENU, MENU_HOMEPAGE);
GetEventHandler()->AddPendingEvent(event);
}
}
}
//m_nav_tree_ctrl->SelectItem(root);
Expand Down

0 comments on commit 7c2cf11

Please sign in to comment.