[assistant-stock-txn] clear warnings/errors/infos before preparing last page

otherwise the messages will accumulate when nagivating back to the
last page.
pull/1698/head
Christopher Lam 3 years ago
parent fa3043a631
commit 165fcce8f5

@ -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 ();

Loading…
Cancel
Save