From 165fcce8f54be612cf992c28c1899e25c9db7469 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Tue, 27 Jun 2023 23:38:37 +0800 Subject: [PATCH] [assistant-stock-txn] clear warnings/errors/infos before preparing last page otherwise the messages will accumulate when nagivating back to the last page. --- gnucash/gnome/assistant-stock-transaction.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gnucash/gnome/assistant-stock-transaction.cpp b/gnucash/gnome/assistant-stock-transaction.cpp index 116dd512bb..d0b5e5ecf3 100644 --- a/gnucash/gnome/assistant-stock-transaction.cpp +++ b/gnucash/gnome/assistant-stock-transaction.cpp @@ -935,6 +935,9 @@ StockAssistantModel::generate_list_of_splits() { if (!m_txn_types || !m_txn_type) return { false, "Error: txn_type not initialized", {} }; + m_warnings.clear(); + m_errors.clear(); + m_infos.clear(); m_list_of_splits.clear(); gnc_numeric debit = gnc_numeric_zero ();