Skip to content

Commit

Permalink
[stock-txn-asst] Fix return calls in StockAssistantModel::create_tran…
Browse files Browse the repository at this point in the history
…saction.
  • Loading branch information
jralls committed Jun 29, 2023
1 parent 98e4f98 commit 833a681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnucash/gnome/assistant-stock-transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,7 @@ StockAssistantModel::create_transaction ()
if (!m_ready_to_create)
{
PERR ("errors exist. cannot create transaction.");
return { false, nullptr };
return false;
}
auto book = qof_instance_get_book (m_acct);
auto trans = xaccMallocTransaction (book);
Expand All @@ -1065,7 +1065,7 @@ StockAssistantModel::create_transaction ()
xaccTransCommitEdit (trans);
std::for_each (accounts.begin(), accounts.end(), xaccAccountCommitEdit);
m_ready_to_create = false;
return { true, trans };
return true;
}

void
Expand Down

0 comments on commit 833a681

Please sign in to comment.