From 1ef0aa8e55c2278248a2f266ba206bcf630922aa Mon Sep 17 00:00:00 2001 From: n-stein <16599929+n-stein@users.noreply.github.com> Date: Wed, 23 Oct 2024 00:17:57 -0400 Subject: [PATCH 1/2] fix(#6935): use constant for right click filter type --- src/mmchecking_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mmchecking_list.cpp b/src/mmchecking_list.cpp index e07c1225b4..cb8905a810 100644 --- a/src/mmchecking_list.cpp +++ b/src/mmchecking_list.cpp @@ -701,7 +701,7 @@ void TransactionListCtrl::findInAllTransactions(wxCommandEvent&) { // save the filter as the "Advanced" filter for All Transactions Model_Infotable::instance().Set("CHECK_FILTER_ID_ADV_-1", rightClickFilter_); // set All Transactions to use the "Advanced" filter - Model_Infotable::instance().Set("CHECK_FILTER_ID_-1", wxString("{\n\"FILTER\": \"View with Transaction Filter...\"\n}")); + Model_Infotable::instance().Set("CHECK_FILTER_ID_-1", wxString("{\n\"FILTER\": \"" + VIEW_TRANS_FILTER_DIALOG_STR + "\"\n}")); // Navigate to the All Transactions panel wxTreeItemId currentId = m_cp->m_frame->GetNavTreeSelection(); m_cp->m_frame->setNavTreeSection(wxTRANSLATE("All Transactions")); From fc0580dc750879a1e9dc11a55a3752aea2117e64 Mon Sep 17 00:00:00 2001 From: n-stein <16599929+n-stein@users.noreply.github.com> Date: Fri, 25 Oct 2024 08:53:20 -0400 Subject: [PATCH 2/2] fix(#6935): use constant for right click filter type --- src/mmchecking_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mmchecking_list.cpp b/src/mmchecking_list.cpp index cb8905a810..1eb63e8e4f 100644 --- a/src/mmchecking_list.cpp +++ b/src/mmchecking_list.cpp @@ -701,7 +701,7 @@ void TransactionListCtrl::findInAllTransactions(wxCommandEvent&) { // save the filter as the "Advanced" filter for All Transactions Model_Infotable::instance().Set("CHECK_FILTER_ID_ADV_-1", rightClickFilter_); // set All Transactions to use the "Advanced" filter - Model_Infotable::instance().Set("CHECK_FILTER_ID_-1", wxString("{\n\"FILTER\": \"" + VIEW_TRANS_FILTER_DIALOG_STR + "\"\n}")); + Model_Infotable::instance().Set("CHECK_FILTER_ID_-1", "{\n\"FILTER\": \"" + VIEW_TRANS_FILTER_DIALOG_STR + "\"\n}"); // Navigate to the All Transactions panel wxTreeItemId currentId = m_cp->m_frame->GetNavTreeSelection(); m_cp->m_frame->setNavTreeSection(wxTRANSLATE("All Transactions"));